LPDFCompressor::Write

Summary

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

Syntax

#include "ltwrappr.h"
#include "LTCPDFComp.h"

L_INT LPDFCompressor::Write(pwszOutFile)

Parameters

L_TCHAR * pwszOutFile

Character string that contains the name, including the path, of the document file to save.

Returns

Value Meaning
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

See Also

Functions

Topics

Example

For an example, refer to LPDFCompressor::InsertNormal.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS MRC C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.