Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.Save
Saves the current PDF to a container value which you can assign to a container field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.Save"; PDF { ; filename; Preview } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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 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.
Before you call this function, you can call DynaPDF.OpenOutputFile or DynaPDF.OpenOutputFileEncrypted to open a destination file for the PDF.
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.
Examples
Save PDF:
Set Field [ MyTable::ContainerField; MBS( "DynaPDF.Save"; $PDF; "report.pdf" ) ]
Save PDF without preview picture:
Set Field [ MyTable::ContainerField; MBS( "DynaPDF.Save"; $PDF; "report.pdf"; 0 ) ]
See also
- DynaPDF.Lab
- DynaPDF.SetImportFlags
- DynaPDF.SetImportFlags2
- DynaPDF.SetMetadata
- DynaPDF.SetOrientationEx
- DynaPDF.Table.Create
- DynaPDF.TranslateCoords
- DynaPDF.WebLink
- DynaPDF.WriteStyledText
- PKCS12.SignData
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.
- Version 8.2
- Added checks to DynaPDF.Optimize, DynaPDF.Print and DynaPDF.Save to complain if no pages are in document.
Example Databases
- DynaPDF/Barcodes
- DynaPDF/Book Creation
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/Find and Replace Text
- DynaPDF/Replace Image
- DynaPDF/Replace Text
- DynaPDF/Shrink PDF pages
- DynaPDF/Signature Appearance
- DynaPDF/ZUGFeRD/ZUGFeRD Invoice
- OCR/OCR with DynaPDF
Blog Entries
- DynaPDF Parser for FileMaker
- MBS Plugin Advent calendar: 15 - DynaPDF
- Merge documents with DynaPDF
- Add page links for FileMaker
- Adding cutting lines for PDF in FileMaker
- Swiss QR-Codes for invoices as vector graphics
- Example Script for DynaPDF.FindText and DynaPDF.WebLink
- Merge PDF with table of contents
- Create two page PDF document in FileMaker
- FileMaker with ZUGFeRD 2.0 and Factur-X
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 25th September 2024