SetTextExtractionScaling
Text, Extraction
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 TPDFlib.SetTextExtractionScaling(Options: Integer; Horizontal, Vertical: Double): Integer;ActiveX
Function PDFlib::SetTextExtractionScaling(Options As Long, Horizontal As Double, Vertical As Double) As LongDLL
int DLSetTextExtractionScaling(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. |