DynaPDF.SetPageCoords
---------------------

Sets the coordinate system origin.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.3](newinversion33.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

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

**MBS**( **"DynaPDF.SetPageCoords";** /\* Sets the coordinate system origin. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Value**) /\* The new setting. Can be BottomUp or TopDown.e.g. "TopDown" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $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](DynaPDFSetFontOrigin.md)()). 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](DynaPDFGetPageCoords.md).  
See also [SetPageCoords](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetPageCoords.shtml) function in DynaPDF manual.

### Examples

Set to top down:

 MBS ( "DynaPDF.SetPageCoords"; $PDF ; "TopDown" )  
### See also

- [DynaPDF.GetPageCoords](DynaPDFGetPageCoords.md)
- [DynaPDF.GetPageMode](DynaPDFGetPageMode.md)
- [DynaPDF.SetPageBBox](DynaPDFSetPageBBox.md)
- [DynaPDF.SetPageFormat](DynaPDFSetPageFormat.md)
- [DynaPDF.SetPageHeight](DynaPDFSetPageHeight.md)
- [DynaPDF.SetPageLayout](DynaPDFSetPageLayout.md)
- [DynaPDF.SetPageMode](DynaPDFSetPageMode.md)
- [DynaPDF.Table.Draw](DynaPDFTableDraw.md)
- [DynaPDF.WriteDemoText](DynaPDFWriteDemoText.md)
- [DynaPDF.WriteFTextEx](DynaPDFWriteFTextEx.md)

### Example Databases

- [Barcode/DynaPDF Barcode](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/DynaPDF%20Barcode.shtml#3ScriptAnchor_)
- [DynaPDF/Create PDF with sum form field](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20PDF%20with%20sum%20form%20field.shtml#2ScriptAnchor_)
- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#9ScriptAnchor_)
- [DynaPDF/Invoice/Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Invoice/Invoice.shtml#3ScriptAnchor_)
- [DynaPDF/Merge PDFs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Merge%20PDFs.shtml#5ScriptAnchor_)
- [DynaPDF/Personalized PDFs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Personalized%20PDFs.shtml#2ScriptAnchor_)
- [DynaPDF/Place Picture](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Place%20Picture.shtml#1ScriptAnchor_)
- [DynaPDF/Report](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Report.shtml#1ScriptAnchor_)
- [DynaPDF/Shrink PDF pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Shrink%20PDF%20pages.shtml#2ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Invoice.shtml#3ScriptAnchor_)

### Blog Entries

- [Create PDF/UA with DynaPDF in FileMaker](https://www.mbsplugins.de/archive/2026-05-27/Create_PDFUA_with_DynaPDF_in_F/monkeybreadsoftware_blog_filemaker)
- [Using DynaPDF with Data API for PDF generation](https://www.mbsplugins.de/archive/2026-05-25/Using_DynaPDF_with_Data_API_fo/monkeybreadsoftware_blog_filemaker)
- [Draw images with text using DynaPDF](https://www.mbsplugins.de/archive/2026-01-03/Draw_images_with_text_using_Dy/monkeybreadsoftware_blog_filemaker)
- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)
- [How the Script Merges PDFs and Inserts an Image: A Detailed Breakdown](https://www.mbsplugins.de/archive/2025-02-16/How_the_Script_Merges_PDFs_and/monkeybreadsoftware_blog_filemaker)
- [Page Layouting in DynaPDF](https://www.mbsplugins.de/archive/2024-04-05/Page_Layouting_in_DynaPDF/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 15 - DynaPDF](https://www.mbsplugins.de/archive/2023-12-15/MBS_Plugin_Advent_calendar_15_/monkeybreadsoftware_blog_filemaker)
- [DynaPDF graphics flags](https://www.mbsplugins.de/archive/2023-08-02/DynaPDF_graphics_flags/monkeybreadsoftware_blog_filemaker)
- [Merge documents with DynaPDF](https://www.mbsplugins.de/archive/2023-07-06/Merge_documents_with_DynaPDF/monkeybreadsoftware_blog_filemaker)
- [Swiss QR-Codes for invoices as vector graphics](https://www.mbsplugins.de/archive/2020-06-12/Swiss_QR-Codes_for_invoices_as/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2021, Seite 26](https://filemaker-magazin.de/neuigkeit/4158-Appetithappen-FMM_202105)
- [Ausgabe 3/2019, Seite 37](https://filemaker-magazin.de/neuigkeit/4046-Appetithappen-FMM_201903)
- [Ausgabe 2/2019, Seite 27](https://filemaker-magazin.de/neuigkeit/4043-Appetithappen-FMM_201902)
- [Ausgabe 5/2018, Seite 28](https://filemaker-magazin.de/neuigkeit/4011-Appetithappen-FMM_201805)

This function checks for a license.

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

  
[DynaPDF.SetPageBreakExpression](DynaPDFSetPageBreakExpression.md) - [DynaPDF.SetPageFormat](DynaPDFSetPageFormat.md)

[HTML Version](DynaPDFSetPageCoords.shtml)