SetPageUserUnit

Page properties

Description

Applies a scaling factor to the PDF to allow pages size of larger than 200x200 inches to be defined. SetPageDimensions allows a maximum of 14040x14400 units to be define and this is still the case in PDF 1.6 and above. PDF 1.6 and above allow chaning the UserUnit for 1/72" to a much larger value. ie SerPageUserUnit(2); would scale the page maximum size to 400x400" where in point would actually scale to 2 points

If you need to use this function then you should make sure SetInformation(0, "1.6"); to set te PDF verision to at least version 1.6

Syntax

Delphi

Function TPDFlib.SetPageUserUnit(UserUnit: Double): Integer;

ActiveX

Function PDFlib::SetPageUserUnit(UserUnit As Double) As Long

DLL

int DLSetPageUserUnit(int InstanceID, double UserUnit);

Parameters

UserUnitThe scale factor to apply. Default for all PDF's is 1.0

Return values

1The user unit was applied and the document minimum version was raised to PDF 1.6
0UserUnit is less than 1.0 or not less than 75000