Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

DynaPDF.SaveAndSignFile

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

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.3 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SaveAndSignFile"; PDF; CertFilePath; Password { ; Reason; Location; filename; Preview } )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
CertFilePath File path to a PKCS#12 certificate file. "C:\test.pfx"
Password Password to decrypt the cert's private key. $password
Reason Optional
Optional reason string.
$reason
Location Optional
Optional signers location string
$location
filename Optional
Optionally the file name to be associated with the container value.
The file name should include pdf file extension.
"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 and signs 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.

Examples

Save PDF:

Set Field [ MyTable::ContainerField; MBS( "DynaPDF.SaveAndSignFile"; $PDF; "/Users/cs/Desktop/test.pfx"; $password; "Test"; ""; "report.pdf" ) ]

See also

Example Databases


DynaPDF.Save   -   DynaPDF.SaveGraphicState

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins