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

DynaPDF.Save

Saves the current PDF to a container value which you can assign to a container field.

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

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
filename Optionally the file name to be associated with the container value.
The file name should include pdf file extension.
"hello.pdf" Optional
Preview Optional, whether to include a preview JPEG. Default is 1 for including one. Pass zero to disable preview. 1 Optional

Result

Returns container value with PDF file.

Description

Saves the current PDF to a container value which you can assign to a container field.
The plugin also renders a JPEG for preview and includes it (with DynaPDF Pro).

If you created PDF to a file path and not in memory, this method just returns OK after closing the file.
Before you call this function, you can call DynaPDF.OpenOutputFile or DynaPDF.OpenOutputFileEncrypted to open a destination file for the PDF.

See Plugin.SetPreviewSize to control size of preview picture.

Examples

Save PDF:

Set Field [ MyTable::ContainerField; MBS( "DynaPDF.Save"; $PDF; "report.pdf" ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 4th October 2021


DynaPDF.RoundRectEx - DynaPDF.SaveAndSignFile