Please enable JavaScript to view this site.

TIFF Image Printer

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

SectionName:

PDF File Format

PropertyName:

Use compression

varValue:

VT_BOOL

UseASCIICompression

SectionName:

PDF File Format

PropertyName:

Use ASCII

varValue:

VT_BOOL

ContentEncoding

SectionName:

PDF File Format

PropertyName:

Content Encoding

varValue:

VT_BSTR, one of the following:

None

ZIP

RLE

LZW

Color

SectionName:

PDF File Format

PropertyName:

Color compression

varValue:

VT_BSTR, one of the following:

None

ZIP

RLE

JPEG High

JPEG Medium High

JPEG Medium

JPEG Medium Low

JPEG Low

LZW

Indexed

SectionName:

PDF File Format

PropertyName:

Indexed compression

varValue:

VT_BSTR, one of the following:

None

ZIP

RLE

JPEG High

JPEG Medium High

JPEG Medium

JPEG Medium Low

JPEG Low

LZW

Greyscale

SectionName:

PDF File Format

PropertyName:

Greyscale compression

varValue:

VT_BSTR, one of the following:

None

ZIP

RLE

JPEG High

JPEG Medium High

JPEG Medium

JPEG Medium Low

JPEG Low

LZW

BW

SectionName:

PDF File Format

PropertyName:

BW compression

varValue:

VT_BSTR, one of the following:

None

Group4

Group3-2D

Group3-1D

MH

PDFStandard

SectionName:

PDF File Format

PropertyName:

PDF Standard

varValue:

VT_BSTR, one of the following:

None

PDF/A-1b

Supported Printers: PDF Image Printer, %SUPDRV_RASTER%>

See Also: SetPDFPassword SetPDFSecurity SetProperty pnColorReduction pnDitheringMethod pnPDFContentEncodingMethod pnColorColorCompressionMethod pnIndexedCompressionMethod pnGreyscaleCompressionMethod pnBWCompressionMethod pnPDFStandard