Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets the text extraction options.Text extraction creates a separate text file containing all of the textual elements of your printed documents. The files are stored in the same location as the output files, with a .txt extension.

The text extraction feature was not designed to be Optical Character Recognition (OCR) software. Only straight text will be extracted and formatting of the text file may not be exact. To run OCR, see the OCR options tab in the profile.

To set a single text extraction options use the SetProperty call with the appropriate arguments.

Syntax

expression.SetTextExtractionOptions(TextLayout, TextEncoding,

                                    TextEOL, EmitPageBreaks)

where expression is an IPNSession object.

Parameters

pnTextLayout TextLayout

A pnTextLayout constant to determine how the text in your text extraction file is formatted.

pnTextEncoding TextEncoding

A pnTextEncoding constant to determine the encoding for your text file.

pnTextEOL TextEOL

A pnTextEOL constant to determine the end of line (EOL) encoding for your text file. This differs between Windows, Unix and Macintosh systems.

Boolean EmitPageBreaks

Pass True to emit page breaks (or form feeds) for every page in your document.

Remarks

See the Remarks below for a list of arguments.

Use the following to set this option using SetProperty:

Method Parameter

SetProperty Parameters

TextFilePath

SectionName:

Advanced Features

PropertyName:

Extract Text Filepath

varValue:

VT_BSTR, as above

TextLayout

SectionName:

Advanced Features

PropertyName:

Extract Text Layout

varValue:

VT_BSTR, one of the following:

Physical, Raw, None

TextEncoding

SectionName:

Advanced Features

PropertyName:

Extract Text Encoding

varValue:

VT_BSTR, one of the following:

ANSI, UTF-8, UTF-16

TextEOL

SectionName:

Advanced Features

PropertyName:

Extract Text EOL

varValue:

VT_BSTR, one of the following:

Windows, Mac, Unix

EmitPageBreaks

SectionName:

Advanced Features

PropertyName:

Extract Text Emit Page Breaks

varValue:

VT_BOOL, as above

Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer

See Also: SetTextExtractionOn SetProperty pnTextLayout pnTextEncoding pnTextEOL