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
The function translates the coordinate system to the new origin OriginX, OriginY.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
x | New coordinate origin of the x-axis | $x |
y | New coordinate origin of the y-axis | $y |
Returns OK on success and error on failure.
See also TranslateCoords function in DynaPDF manual.
Translate and draw rectangle:
MBS( "DynaPDF.SaveGraphicState"; $PDF )
MBS( "DynaPDF.TranslateCoords"; $PDF; 200;200)
MBS( "DynaPDF.Rectangle"; $PDF; 0; 0; 200; 100; "stroke" )
MBS( "DynaPDF.RestoreGraphicState"; $PDF )
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014