Debenu Quick PDF logo

DASetPageSize

Direct access functionality, Page properties

Description

Sets the specified page to have a certain width and height.

Syntax

Delphi

function TDebenuPDFLibrary1511.DASetPageSize(FileHandle, PageRef: Integer; PntWidth, 
  PntHeight: Double): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DASetPageSize(FileHandle As Long,
  PageRef As Long, PntWidth As Double, PntHeight As Double) As Long

DLL

int DPLDASetPageSize(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport