DynaPDF Manual - Page 731

Previous Page 730   Index   Next Page 732

Function Reference
Page 731 of 787
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetPageFormat
Syntax:
LBOOL pdfSetPageFormat(
const PPDF* IPDF,
// Instance pointer
TPageFormat Value) // see below
typedef enum
{
pfDIN_A3
= 0,
pfDIN_A4
= 1,
pfDIN_A5
= 2,
pfDIN_B4
= 3,
pfDIN_B5
= 4,
pfDIN_B6
= 5,
pfDIN_C3
= 6,
pfDIN_C4
= 7,
pfDIN_C5
= 8,
pfDIN_C6
= 9,
pfDIN_C65
= 10,
pfDIN_DL
= 11,
pfDIN_E4
= 12,
pfDIN_E5
= 13,
pfDIN_E6
= 14,
pfDIN_E65
= 15,
pfDIN_M5
= 16,
pfDIN_M65
= 17,
pfUS_Legal
= 18,
pfUS_Letter
= 19,
pfDIN_A0
= 20,
pfDIN_A1
= 21,
pfDIN_A2
= 22,
pfDIN_A6
= 23,
pfDIN_A7
= 24,
pfDIN_A8
= 25,
pfDIN_A9
= 26,
pfDIN_A10
= 27
}TPageFormat;
The function sets a predefined page or paper format. If an open page can be detected the format of
the page will be changed, the new format will also be used for newly created pages. If no open page
is detected, the default format for new pages will be set only. This function changes the media box
of a page (see SetBBox() for further information).
Paper formats:
Format
Size in PDF Units (Width x Height) -> 1 PDF Unit = 1/72 inch
pfDIN_A0
2384.0 x 3370.0
pfDIN_A1
1684.0 x 2384.0
pfDIN_A2
1191.0 x 1684.0
pfDIN_A3
842.0 x 1191.0
pfDIN_A4
595.0 x
842.0
pfDIN_A5
419.0 x
595.0
pfDIN_A6
298.0 x
420.0
 

Previous topic: SetPageBBox, SetPageCoords

Next topic: SetPageHeight

Start Chat