Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Changes the orientation of the page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Value | The new roatation value. From -360 to 360 in 90 degree steps. | 90 |
Returns OK or error message.
See also SetOrientation function in DynaPDF manual.
Create landscape picture with orientation:
# Add page
Set Variable [ $r ; Value: MBS("DynaPDF.AppendPage"; $pdf) ]
# Rotate page 90°
Set Variable [ $r ; Value: MBS("DynaPDF.SetOrientation"; $pdf; 90) ]
# draw something...
#
# End page
Set Variable [ $r ; Value: MBS("DynaPDF.EndPage"; $pdf) ]
This function checks for a license.
Created 18th August 2014, last changed 3th January 2021