SetPrecision

Measurement and coordinate units

Description

Use this function to set the precision of numerical values stored in the PDF document. Setting the precision to a lower number will reduce the size of the generated file, while a higher precision will result in a larger file, although objects and graphics will be more accurately positioned. The default precision is 4.

Syntax

Delphi

function TPDFlib.SetPrecision(NewPrecision: Integer): Integer;

ActiveX

Function PDFlib::SetPrecision(NewPrecision As Long) As Long

DLL

int DLSetPrecision(int InstanceID, int NewPrecision);

Parameters

NewPrecisionThe precision to use for subsequent drawing operations. A value from 2 to 8.

Return values

0The precision specified was out of range
1The precision was set successfully