Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SaveAndSignFile
Saves and signs the current PDF.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.3 | Yes | Yes | Yes | Yes | Yes |
MBS( "DynaPDF.SaveAndSignFile"; PDF; CertFilePath; Password { ; Reason; Location; filename; Preview } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| The PDF reference returned from DynaPDF.New. | |||
| CertFilePath | File path to a PKCS#12 certificate file. | "C:\test.pfx" | |
| Password | Password to decrypt the cert's private key. | $password | |
| Reason | Optional reason string. | $reason | Optional |
| Location | Optional signers location string | $location | Optional |
| 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 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.
Examples
Save PDF:
Set Field [ MyTable::ContainerField; MBS( "DynaPDF.SaveAndSignFile"; $PDF; "/Users/cs/Desktop/test.pfx"; $password; "Test"; ""; "report.pdf" ) ]
See also
- DynaPDF.New
- DynaPDF.PlaceSigFieldValidateIcon
- DynaPDF.Save
- DynaPDF.SaveAndSignFileWinCrypt
- DynaPDF.SaveAndSignFileWinCryptDialog
Example Databases
Blog Entries
- News about the MBS FileMaker Plugin 10.2
- Digitally signing PDF with DynaPDF and custom signature appearance
- MBS Filemaker Plugin, version 3.3pr7
Release notes
- Version 10.1
- Added DynaPDF.SaveAndSignFileWinCrypt and DynaPDF.SaveAndSignFileWinCryptDialog functions.
Created 18th August 2014, last changed 31st January 2020
DynaPDF.Save - DynaPDF.SaveAndSignFileWinCrypt
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins