Debenu Quick PDF logo

SetTextExtractionScaling

Text, Extraction

Version history

This function was introduced in Quick PDF Library version 8.16.

Description

Sets the scaling to use for the GetPageText function in Mode 7. This controls the number of rows and columns in the monospaced text output.

The setting is applied to the selected document only.

To adjust the text extraction for the ExtractFilePageText and DAExtractPageText functions, use the DASetTextExtractionScaling function.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetTextExtractionScaling(Options: Integer; 
  Horizontal, Vertical: Double): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetTextExtractionScaling(Options As Long,
  Horizontal As Double, Vertical As Double) As Long

DLL

int DPLSetTextExtractionScaling(int InstanceID, int Options, double Horizontal,
  double Vertical)

Parameters

Options Should 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.
Horizontal The scaling to use for the horizontal axis in units defined by the Options parameter.
Vertical The scaling to use for the vertical axis in units defined by the Options parameter.

Return values

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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport