Debenu Quick PDF logo

SetGlobalScale

Measurement and coordinate units

Version history

This function was introduced in Quick PDF Library version 17.15.

Description

Scales the co-ordinate system for all subsequent drawing operations. A scale factor of 1 is equivalent to calling SetGlobalMeasurementUnits(0) which sets the measurement units to be Points. A scale factor of (72 / 25.4) is equivalent to calling SetGlobalMeasurementUnits(1) which sets the measurement units to be millimetres.

The scaling will be changed for the selected document, either loaded using LoadFromFile, LoadFromStream or LoadFromString or subsquently selected with SelectDocument.

This function will also change the scale for the standalone functions such as ExtractFilePageText or direct access functions such as DAExtractPageText, DAGetPageWidth, DAGetPageHeight, etc.

Syntax

Delphi

function TDebenuPDFLibrary1811.SetGlobalScale(NewScale: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::SetGlobalScale(NewScale As Long) As Long

DLL

int DPLSetGlobalScale(int InstanceID, int NewScale)

Parameters

NewScale The scale factor to use

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport