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 TPDFlib.SetPageSize(Const PaperName: WideString): Integer;
ActiveX
Function PDFlib::SetPageSize(PaperName As String) As Long
DLL
int DLSetPageSize(int InstanceID, const 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, Size8x11, QuadA0, DoubA0, B0Plus, EnvB4, EnvB5, EnvC6, EnvDL, EnvMonarch, Env9, Env10, Env11, ANSIA, ANSIB, ANSIC, ANSID, ANSIE, ARCHA, ARCHB, ARCHC, ARCHD, ARCHE1, ARCHE, Shiroku, G1K, Large8K, Standard8K, Crown8K, ROC8K, Large16K, Standard16K, Crown16K, ROC16K, USBC, EUBC, ASBC, ID1, ID2, ID3, OneInch, TwoInch, L2Inch, USVisa, P2R, P3R, P4R, P4D, P5R, P6R, P8R, S8R, P10R, P11R, P12R, P16R, P20R, P24R. 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 |