Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1    Statistic  


Saves and signs the current PDF.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 10.1 No Yes No No No
MBS( "DynaPDF.SaveAndSignFileWinCryptDialog"; PDF { ; StoreName; ContactInfo; Location; Reason; filename; Preview } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
StoreName Optional
The name of the certificate store.
ContactInfo Optional
Optional contact info.
Location Optional
Optional signers location string
Reason Optional
Optional reason string.
filename Optional
Optionally the file name to be associated with the container value.
The file name should include pdf file extension.
Preview Optional
Optional, whether to include a preview JPEG.
Default is 1 for including one. Pass zero to disable preview.


Returns OK or error.


Saves and signs the current PDF.
On success you either get back the PDF as container value (in memory PDF) or it returns OK after writing PDF to file (file based PDF).
The plugin also renders a JPEG for preview and includes it within the container value (with DynaPDF Pro).

On Windows you can use WinCrypt with DynaPDF.SaveAndSignFileWinCrypt function and optionally use dialog to pick the certificate with DynaPDF.SaveAndSignFileWinCryptDialog from the certificate store.
Use DynaPDF.SaveAndSignFile for cross platform signing.


Save and sign a PDF after you assembled it:

Set Variable [ $PDFData ; Value: MBS("DynaPDF.SaveAndSignFileWinCryptDialog"; $pdf; ""; "MY") ]
Set Variable [ $r ; Value: MBS("DynaPDF.Release"; $pdf) ]
# Put in Container
Set Field [ Create Text::PDF ; $PDFData ]

See also

Created 31st January 2020, last changed 31st January 2020

DynaPDF.SaveAndSignFileWinCrypt   -   DynaPDF.SaveGraphicState

Feedback: Report problem or ask question.

MBS Xojo Plugins