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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
PDFKit.AddEmptyPage
Adds an empty page to the given PDF document.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PDFKit | 5.0 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| A PDF reference number from PDFKit.Open. | $ref | ||
| Width | The width for the new PDF page. | 600 | Optional |
| Height | The height of the new PDF page. | 800 | Optional |
Result
Returns OK or error.
Description
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.
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.AddImagePage
- PDFKit.GetPDFDocument
- PDFKit.NewPDFDocument
- PDFKit.Open
- PDFKit.Release
- PDFKit.WriteToPath
Blog Entries
Created 16th February 2015, last changed 25th April 2016
OCR.WriteToPDF - PDFKit.AddImageFilePage
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins