GetPageSize

Declaration

Delphi

procedure GetPageSize(Page: Integer; var x, y: Integer); stdcall;

ActiveX

HRESULT _stdcall GetPageSize([in] long Page, [in, out] long* x, [in, out] long* y);

 

Arguments

ArgumentDescription
Page

Number of the page, you want the size from

XWidth (PDF points)
YHeight (PDF points)

 

Description

Because a TIFF or PDF document can include pages with different sizes, you have to tell this procedure the desired page number in Page. The procedure will write the size of the page into the variables X and Y.

In case of a TIFF document, it will be the size in pixels.

In case of a PDF document, it will be the size in points (Points are a PDF specific measurement method because PDF documents are scalable and do not have a fixed size in pixels).

 

 

Sample 

C#
 
int x = 0;     
int y = 0;      
int page = 1;
                
SignAPIv4.GetPageSize(page, ref x, ref y);