Debenu Quick PDF logo

SetPageSize

Page properties, Page layout

Description

Use this function to set the current page to a named size, for example "A4" or "Letter Landscape".

Syntax

Delphi

function TDebenuPDFLibrary1511.SetPageSize(PaperName: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetPageSize(PaperName As String) As Long

DLL

int DPLSetPageSize(int InstanceID, wchar_t * PaperName)

Parameters

PaperName The name of the paper, one of the following: A0 to A10, B0 to B10, ISOB0 to ISOB10, C0 to C7, DL, Letter, Legal, Statement, Tabloid, Ledger, Executive, Folio. You can make a landscape page by adding the word Landscape after the paper name, for example "A3 Landscape".

Return values

0 The specified paper name was not valid
1 The page was resized successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport