Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.Clear

Starts a new PDF in memory or at the given path.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.Clear"; PDF { ; Path } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Path The file path to create the PDF. "C:\Test.pdf" Optional

Result

Returns OK on success.

Description

Starts a new PDF in memory or at the given path.
Writing PDF to file to disk while creating it allows PDF files to be bigger than available memory. In order to have that working well, you need to call DynaPDF.FlushPages regularly to free memory.
Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required.

Examples

Starts with a new blank PDF:

$r = MBS( "DynaPDF.clear"; $PDF )

See also

This function is free to use.

Created 18th August 2014, last changed 9th July 2015


DynaPDF.CircleAnnot - DynaPDF.ClipPath