Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  


Sets the coordinate system origin.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.3 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetPageCoords"; PDF; Value )


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


Returns OK on success or error message.


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.


Set to top down:

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

See also

Example Databases

DynaPDF.SetPDFVersion   -   DynaPDF.SetPageFormat

Feedback: Report problem or ask question.

MBS FileMaker blog