Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
The function scales the coordinate system by applying a transformation matrix.
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 | Scale factor of the x-axis | $x |
y | Scale factor of the y-axis | $y |
Returns OK on success and error on failure.
See also ScaleCoords function in DynaPDF manual.
Scale and draw rectangle:
MBS( "DynaPDF.SaveGraphicState"; $PDF )
MBS( "DynaPDF.ScaleCoords"; $PDF; 2; 2)
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