SetPageDimensions
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 TDebenuPDFLibrary1811.SetPageDimensions(NewPageWidth,
NewPageHeight: Double): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SetPageDimensions(NewPageWidth As Double,
NewPageHeight As Double) As Long
DLL
int DPLSetPageDimensions(int InstanceID, double NewPageWidth, double NewPageHeight)
Parameters
NewPageWidth | The new width of the page |
NewPageHeight | The new height of the page |
Return values
0 | The page size could not be set. This should never occur. |
1 | The page was resized successfully |