Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 695

Previous Page 694   Index   Next Page 696

Function Reference
Page 695 of 750
SetPageCoords
Syntax:
LBOOL pdfSetPageCoords(
const PPDF* IPDF,
// Instance pointer
TPageCoord PageCoords) // see below
typedef enum
{
pcBottomUp = 0, // Bottom-up coordinates
pcTopDown
= 1
// Top-down coordinates
}TPageCoord;
The native coordinate system of the Portable Document Format is bottom-up. However, DynaPDF
supports also top-down coordinates to make the usage of the library easier. Top-down coordinates
are then converted to bottom-up coordinates by DynaPDF, the coordinate system in the PDF file will
not be changed by this function.
When changing the coordinate system to top-down, the coordinate origin of text (font origin) will
also be changed to the top-left corner (see also SetFontOrigin()). If the coordinate system will be
changed to bottom-up, the font origin is also changed to the down-left corner too.
Default value = pcBottomUp
Remarks:
The property PageCoords is a global property which can be changed at any time. When transforming
the coordinate system, bottom-up coordinates must be used.
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,
 

Previous topic: SetOrientationEx

Next topic: Paper formats: