LPDFCompressor::Write

#include "ltwrappr.h"

#include "LTCPDFComp.h"

L_INT LPDFCompressor::Write(pwszOutFile)

L_TCHAR * pwszOutFile;

path of the file to save

Writes the file in memory to a file on disk, using the path provided.

Parameter

Description

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 saves 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 LPDFCompressor::Free.

Required DLLs and Libraries

LCMRC
LCPDF
LCENC
LCZIB
LTSGM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS MRC C++ Class Library Help