Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.MoveTo
The function moves the current position to the point specified by PosX, PosY.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
PosX | The x-coordinate. | $x |
PosY | The y-coordinate. | $y |
Result
Returns OK or error.
Description
The function moves the current position to the point specified by PosX, PosY.This function must be called before a line or curved path segment can be drawn. See also DynaPDF.LineTo, DynaPDF.Bezier_1_2_3.
See also MoveTo function in DynaPDF manual.
Examples
Draw two lines in black:
Set Variable [$r; Value:MBS ( "DynaPDF.SetStrokeColor" ; $pdf ; 0; 0; 0 )]
Set Variable [$r; Value:MBS ( "DynaPDF.SetLineWidth" ; $pdf ; 1 )]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 20; 20)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 20; 40)]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 30; 30)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 30; 50)]
Set Variable [$r; Value:MBS ( "DynaPDF.StrokePath" ; $pdf)]
Draw triangle path:
# blue color
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; 1) ]
# go to start point
Set Variable [ $r ; Value: MBS("DynaPDF.MoveTo"; $pdf; 100; 100) ]
# add more points
Set Variable [ $r ; Value: MBS("DynaPDF.LineTo"; $pdf; 200; 100) ]
Set Variable [ $r ; Value: MBS("DynaPDF.LineTo"; $pdf; 100; 200) ]
# and fill
Set Variable [ $r ; Value: MBS("DynaPDF.ClosePath"; $pdf; "fill") ]
See also
- DynaPDF.Bezier13
- DynaPDF.Bezier23
- DynaPDF.ClipPath
- DynaPDF.ClosePath
- DynaPDF.MovePage
- DynaPDF.New
- DynaPDF.SetFillColor
- DynaPDF.SetLineWidth
- DynaPDF.SetStrokeColor
- DynaPDF.StrokePath
Example Databases
Blog Entries
- Things you can do with DynaPDF
- Adding cutting lines for PDF in FileMaker
- MBS Filemaker Plugin, version 3.2pr4
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 7th March 2020