Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetPageCoords

Sets the coordinate system origin.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetPageCoords"; PDF; Value )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Value The new setting. Can be BottomUp or TopDown. "TopDown"

Result

Returns OK on success or error message.

Description

Sets the coordinate system origin.
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 DynaPDF.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 is BottomUp.
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.
See also DynaPDF.GetPageCoords.

See also SetPageCoords function in DynaPDF manual.

Examples

Set to top down:

MBS( "DynaPDF.SetPageCoords"; $PDF; "TopDown" )

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


DynaPDF.SetPageBreakExpression - DynaPDF.SetPageFormat