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.SetAlpha
- DynaPDF.SetImportFlags
- DynaPDF.SetMetadata
- DynaPDF.SkewCoords
- DynaPDF.Table.Create
- DynaPDF.Table.Draw
- DynaPDF.WriteStyledText
- 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.
- Version 8.2
- Added checks to DynaPDF.Optimize, DynaPDF.Print and DynaPDF.Save to complain if no pages are in document.
Example Databases
- DynaPDF/Add Page Numbers
- DynaPDF/Apply Letter Paper to PDF
- DynaPDF/Barcodes
- DynaPDF/Convert to PDFA
- DynaPDF/PDF Library
- DynaPDF/Place Template
- DynaPDF/Signature Appearance
- DynaPDF/ZUGFeRD 2.0/Factur-X Invoice
- DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Invoice
- DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Rechnung erstellen
Blog Entries
- How the Script Merges PDFs and Inserts an Image: A Detailed Breakdown
- MBS FileMaker Advent calendar - Door 6 - Sending Out Wishlist Forms
- MBS FileMaker Advent calendar - Door 4 - Add GTC with DynaPDF
- 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
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 25th September 2024
