Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Creates a new empty PDF and returns a PDF Reference value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PDFKit 5.0 Yes No Yes, macOS only No Yes
MBS( "PDFKit.NewPDFDocument" )   More




Returns a number for the PDF. Use PDFKit.Release later to free the memory.


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.


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

Example Databases

Blog Entries

Created 16th February 2015, last changed 16th February 2015

PDFKit.GetPrintSetting   -   PDFKit.Open

Feedback: Report problem or ask question.

MBS Xojo Plugins