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 |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
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
- DynaPDF.GetPageCoords
- DynaPDF.GetPageMode
- DynaPDF.SetPageBBox
- DynaPDF.SetPageFormat
- DynaPDF.SetPageHeight
- DynaPDF.SetPageLayout
- DynaPDF.SetPageMode
- DynaPDF.Table.Draw
- DynaPDF.WriteDemoText
- DynaPDF.WriteFTextEx
Example Databases
- DynaPDF/Add Page Numbers
- DynaPDF/Book Creation
- DynaPDF/Find and Replace Text
- DynaPDF/Invoice/Invoice
- DynaPDF/Personalized PDFs
- DynaPDF/PSD Conversion
- DynaPDF/Report
- DynaPDF/Shrink PDF pages
- DynaPDF/WMF Conversion
- DynaPDF/ZUGFeRD/ZUGFeRD Invoice
Blog Entries
- Page Layouting in DynaPDF
- MBS Plugin Advent calendar: 15 - DynaPDF
- DynaPDF graphics flags
- Merge documents with DynaPDF
- Swiss QR-Codes for invoices as vector graphics
- Merge PDF with table of contents
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014