SetPageDimensions

Page properties, Page layout

Description

Set the size of the selected page.

This function updates the MediaBox entry which represents the physical medium of the page and will only affect content subsequently added to the page. This function does not resize the already existing content of the page.

Syntax

Delphi

function TPDFlib.SetPageDimensions(NewPageWidth, NewPageHeight: Double): Integer;

ActiveX

Function PDFlib::SetPageDimensions(NewPageWidth As Double, NewPageHeight As Double) As Long

DLL

int DLSetPageDimensions(int InstanceID, double NewPageWidth, double NewPageHeight);

Parameters

NewPageWidthThe new width of the page
NewPageHeightThe new height of the page

Return values

0The page size could not be set. This should never occur. The page was resized successfully
1