DASetTextExtractionScaling

Text, Extraction, Direct access functionality

Description

Sets the scaling to use for text extraction in Mode 7.

This controls the number of rows and columns in the monospaced text output.

This function affects the results of the ExtractFilePageText and DAExtractPageText functions only.

Syntax

Delphi

function TPDFlib.DASetTextExtractionScaling(Options: Integer; Horizontal, Vertical: Double): Integer;

ActiveX

Function PDFlib::DASetTextExtractionScaling(Options As Long, Horizontal As Double, Vertical As Double) As Long

DLL

int DLDASetTextExtractionScaling(int InstanceID, int Options, double Horizontal, double Vertical);

Parameters

OptionsShould always be set to 0. This indicates a scaling factor will be set for the Horizontal and Vertical parameters, with a default value of 5 for horizontal and 8 for vertical. Smaller values stretch the text out into more rows/columns.
HorizontalThe scaling to use for the horizontal axis in units defined by the Options parameter.
VerticalThe scaling to use for the vertical axis in units defined by the Options parameter.

Return values

0The Options parameter was not valid or a value less than 1 was used for the Horizontal or Vertical parameters.
1Text extraction scaling was set successfully.