DASetPageSize
Direct access functionality, Page properties
Description
Sets the specified page to have a certain width and height.
Syntax
Delphi
function TPDFlib.DASetPageSize(FileHandle, PageRef: Integer; PntWidth, PntHeight: Double): Integer;ActiveX
Function PDFlib::DASetPageSize(FileHandle As Long, PageRef As Long, PntWidth As Double, PntHeight As Double) As LongDLL
int DLDASetPageSize(int InstanceID, int FileHandle, int PageRef, double PntWidth, double PntHeight);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|---|
| PageRef | A page reference returned by the DAFindPage or DANewPage functions |
| PntWidth | The new width of the page, measured in points |
| PntHeight | The new height of the page, measured in points |
Return values
| 0 | The specified FileHandle or PageRef were not valid |
|---|---|
| 1 | The page size was set successfully |