DASetPageSize
Direct access functionality, Page properties
Description
Sets the specified page to have a certain width and height.
By default the dimensions are points, this can be changed using the SetGlobalMeasurementUnits function.
Syntax
Delphi
function TDebenuPDFLibrary1811.DASetPageSize(FileHandle, PageRef: Integer; Width,
Height: Double): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::DASetPageSize(FileHandle As Long,
PageRef As Long, Width As Double, Height As Double) As Long
DLL
int DPLDASetPageSize(int InstanceID, int FileHandle, int PageRef, double Width,
double Height)
Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
| PageRef | A page reference returned by the DAFindPage or DANewPage functions |
| Width | The new width of the page |
| Height | The new height of the page |
Return values
| 0 | The specified FileHandle or PageRef were not valid |
| 1 | The page size was set successfully |
