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.
Examples
Save PDF:
Set Field [ MyTable::ContainerField; MBS( "DynaPDF.Save"; $PDF; "report.pdf" ) ]
See also
- DynaPDF.Lab
- DynaPDF.SetAlpha
- DynaPDF.SetImportFlags
- DynaPDF.SetImportFlags2
- DynaPDF.SetMetadata
- DynaPDF.SkewCoords
- DynaPDF.Table.Draw
- DynaPDF.TranslateCoords
- DynaPDF.WriteStyledText
- PKCS12.SignData
Release notes
- 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/Apply Letter Paper to PDF
- DynaPDF/Catalog with tables
- DynaPDF/Convert to 2 Pages
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/PDF Library
- DynaPDF/Replace Text
- DynaPDF/Report
- DynaPDF/Tables
- DynaPDF/ZUGFeRD 2.0/Factur-X Invoice
- OCR/OCR with DynaPDF
Blog Entries
- 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
- How to Convert a PDF document to a PDF/A
- PDF Forms with MBS Plugin
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 4th October 2021
