Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PDFKit.NewPDFDocument
Creates a new empty PDF and returns a PDF Reference value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 5.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameters
none
Result
Returns a number for the PDF. Use PDFKit.Release later to free the memory.
Description
Creates a new empty PDF and returns a PDF Reference value.This value can be used in other PDFKit calls to work on the same PDF.
See also PDFKit.Open.
PDF Document reference numbers are starting at 30000 and counting up for each new document.
Examples
Create PDF from images:
# Start new document
Set Variable [$doc; Value:MBS("PDFKit.NewPDFDocument")]
# Add image in full size as new page
Set Variable [$r; Value:MBS("PDFKit.AddImagePage"; $doc; test::image)]
# Add empty page in default size
Set Variable [$r; Value:MBS("PDFKit.AddEmptyPage"; $doc)]
# Add image in given size as new page:
Set Variable [$r; Value:MBS("PDFKit.AddImagePage"; $doc; test::image; 400; 300)]
# get PDF document and store in container:
Set Field [test::test; MBS("PDFKit.GetPDFDocument"; $doc)]
# release memory
Set Variable [$r; Value:MBS("PDFKit.Release"; $doc)]
See also
- PDFKit.AddEmptyPage
- PDFKit.AddImageFilePage
- PDFKit.AddImagePage
- PDFKit.AppendPages
- PDFKit.GetPDFDocument
- PDFKit.Open
- PDFKit.Release
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 16th February 2015, last changed 16th February 2015