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 LongDLL
int DLSetPageDimensions(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. The page was resized successfully |
|---|---|
| 1 |