Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

DynaPDF.Save

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

Component: DynaPDF
Version: 3.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.Save"; PDF { ; filename; Preview } )

Parameters

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

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.

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.

Examples

Save PDF:

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

See also


DynaPDF.RoundRectEx   -   DynaPDF.SaveAndSignFile

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Förderverein St. Arnulf Nickenich