NormalizePage

Text, Page manipulation

Description

Moves and/or rotates the contents of the page so that subsequent drawing operations are at the expected position on the page. All the page boundary boxes are adjusted to the physical size of the page and the page's rotation attribute is reset to zero.

PDF version behaviour: normalised BleedBox, TrimBox, and ArtBox page dictionary entries require PDF 1.3. When a lower unlocked document version is active, NormalizePage automatically raises the document to PDF 1.3 through the same boundary-box version gate used by SetPageBox.

Syntax

Delphi

function TPDFlib.NormalizePage(NormalizeOptions: Integer): Integer;

ActiveX

Function PDFlib::NormalizePage(NormalizeOptions As Long) As Long

DLL

int DLNormalizePage(int InstanceID, int NormalizeOptions);

Parameters

NormalizeOptions0 = Standard normalisation 1 = Normalise and also balance the graphics state stack 2 = Maintain existing page structure 3 = Maintain existing page structure and balance the stack