LEADTOOLS Mixed Raster Content (MRC) C DLL Help > Function References > L_PdfCompWrite |
#include "l_bitmap.h"
#include "lpdfComp.h"
L_LCMRC_API L_INT L_PdfCompWrite (hDocument, pwszOutFile)
LCPDF_HANDLE hDocument; |
/* handle to an existing PDF document */ |
L_TCHAR * pwszOutFile; |
/* path of the file to save */ |
Writes the created file from memory to file system using the path provided.
Parameter |
Description |
hDocument |
Handle to an existing PDF document handle. This handle is obtained by calling the L_PdfCompInit function. |
pwszOutFile |
Character string that contains the name, including the path, of the document file to save. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function uses the PDF document handle to save a compressed PDF document file to disk. The pwszOutFile parameter indicates where the PDF document file should be created.
The PDF Compressor normally creates the compressed PDF document file in memory. It can add as many pages as required to the file. Once the PDF file in memory is complete, call this function to write the file to disk, before calling L_PdfCompFree.
Required DLLs and Libraries
LCMRC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
L_PdfCompInit, L_PdfCompFree, L_PdfCompInsertMRC, L_PdfCompInsertNormal |
Topics: |
|
|
Example
For an example, refer to L_PdfCompInsertNormal.