Debenu Quick PDF logo

SetScale

Measurement and coordinate units

Description

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

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

This function does not have an effect on the standalone functions such as ExtractFilePageText or direct access functions such as DAExtractPageText, DAGetPageWidth, DAGetPageHeight, etc. For those it's necessary to rather use the SetGlobalScale function.

Syntax

Delphi

function TDebenuPDFLibrary1811.SetScale(NewScale: Double): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::SetScale(NewScale As Double) As Long

DLL

int DPLSetScale(int InstanceID, double NewScale)

Parameters

NewScale The scale factor to use

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport