Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  


Adds an empty page to the given PDF document.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PDFKit 5.0 Yes No Yes, macOS only No Yes

MBS( "PDFKit.AddEmptyPage"; PDF { ; Width; Height } )


Parameter Description Example value
PDF A PDF reference number from PDFKit.Open. $ref
Width Optional
The width for the new PDF page.
Height Optional
The height of the new PDF page.


Returns OK or error.


Adds an empty page to the given PDF document.

Your changes are only done in memory, so please remember to write modified pdf back to disk, e.g. by using PDFKit.WriteToPath. Or use PDFKit.GetPDFDocument to get a PDF for storing in a container.


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

OCR.WriteToPDF   -   PDFKit.AddImageFilePage

Feedback: Report problem or ask question.

MBS FileMaker Plugins