Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
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
MBS(
"DynaPDF.SetPageCoords"; /* Sets the coordinate system origin. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$Value) /* The new setting. Can be BottomUp or TopDown.e.g. "TopDown" */
Less
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