Description
Sets the PDF file format image and content compression methods used to store any images in the output file. The actual compression method used on each image will depend on the color reduction method chosen through the SetSaveOptions method. Other output options used, such as SetFaxImageOptions may override any settings chosen here.
When creating vector PDF files, the color, indexed, greyscale and BW compression options apply to any images on the pages of the file. When creating raster, or non-searchable PDF files where each page is an image, the compression options apply to the entire page.
To set only a single compression option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.
Syntax
expression.SetPDFCompressionOptions(UseCompression, UseASCIICompression,ContentEncoding,
Color, Indexed, Greyscale, BW, PDFStandard)
where expression is an IPNSession object.
Parameters
Boolean UseCompression
Set True to create a compressed PDF file, False to create an uncompressed document. Uncompressed PDF files can be very large.
Boolean UseASCIICompression
Set True to store the PDF document in ASCII format.
pnPDFContentEncodingMethod ContentEncoding
A pnPDFContentEncodingMethod constant for the compression method to use to compress any text and line art in the PDF document.
pnColorCompressionMethod Color
A pnColorCompressionMethod constant for the compression method to use for color images.
pnIndexedCompressionMethod Indexed
A pnIndexedCompressionMethod constant for the compression method to use for indexed images. An indexed image is an image that has 256 colors or less.
pnGreyscaleCompressionMethod Greyscale
A pnGreyscaleCompressionMethod constant for the compression method to use for greyscale images.
pnBWCompressionMethod BW
A pnBWCompressionMethod constant for the compression method to use for black and white images.
pnPDFStandard PDFStandard
A pnPDFStandard constant for the compression method to use for black and white images.
Remarks
Use the following to set these options using SetProperty:
Method Parameter |
SetProperty Parameters |
||||||
---|---|---|---|---|---|---|---|
UseCompression |
|
||||||
UseASCIICompression |
|
||||||
ContentEncoding |
|
||||||
Color |
|
||||||
Indexed |
|
||||||
Greyscale |
|
||||||
BW |
|
||||||
PDFStandard |
|
Supported Printers: PDF Image Printer, %SUPDRV_RASTER%>
See Also: SetPDFPassword SetPDFSecurity SetProperty pnColorReduction pnDitheringMethod pnPDFContentEncodingMethod pnColorColorCompressionMethod pnIndexedCompressionMethod pnGreyscaleCompressionMethod pnBWCompressionMethod pnPDFStandard