Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SaveAndSignFile
Saves and signs the current PDF.
Component | Version | macOS | Windows | Linux | Server | 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 | Optional |
Reason | Reason string. | $reason | Optional |
Location | Signers location string | $location | Optional |
FileName | The file name to be associated with the container value. The file name should include pdf file extension. |
"hello.pdf" | Optional |
Preview | Whether to include a preview JPEG. Default is 1 for including one. Pass zero to disable preview. |
1 | Optional |
Result
Returns PDF container, OK or error.
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.
For longer keys with 2048 and 4096 bits, please check DynaPDF.SaveAndSignFileExt function.
See Plugin.SetPreviewSize to control size of preview picture.
If you have an open page, we close it automatically for you before doing the import.
See also SaveAndSignFile function in DynaPDF manual.
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.SaveAndSignFileExt
- DynaPDF.SaveAndSignFileExt1
- DynaPDF.SaveAndSignFileExt2
- DynaPDF.SaveAndSignFileWinCrypt
- DynaPDF.SaveAndSignFileWinCryptDialog
- PKCS12.SignData
- Plugin.SetPreviewSize
Release notes
- Version 14.2
- Added CertificateName parameter to DynaPDF.SaveAndSignFileWinCryptDialog function to skip dialog and pick certificate by name.
- Version 13.4
- Added new parameter useDetached for DynaPDF.SaveAndSignFileExt1 function.
- Version 13.1
- Added DynaPDF.SaveAndSignFileExt1 and DynaPDF.SaveAndSignFileExt2 functions to sign a PDF using external PKCS7 signature provider.
- Version 11.5
- Fixed documentation for DynaPDF.SaveAndSignFileExt and added missing ContactInfo parameter.
- Version 11.1
- Fixed bug in DynaPDF.SaveAndSignFileExt function.
- Version 11.0
- Added DynaPDF.SaveAndSignFileExt function to sign PDF file with 2048 or 4096 bit key length.
- Version 10.1
- Added DynaPDF.SaveAndSignFileWinCrypt and DynaPDF.SaveAndSignFileWinCryptDialog functions.
Example Databases
Blog Entries
- Unlocking the Power of PDFs in FileMaker with DynaPDF and the MBS FileMaker Plugin
- Combined Components with MBS FileMaker Plugin
- New in MBS FileMaker Plugin 11.0
- News about the MBS FileMaker Plugin 10.2
- Digitally signing PDF with DynaPDF and custom signature appearance
- MBS Filemaker Plugin, version 3.3pr7
This function checks for a license.
Created 18th August 2014, last changed 25th September 2024