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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Adds a new page to PDF document with given image file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
A PDF reference number from PDFKit.Open. | $ref | ||
FilePath | The file path to the image file to use. | "/Users/cs/Desktop/test.png" | |
Width | The width for the new PDF page. | 600 | Optional |
Height | The height of the new PDF page. | 800 | Optional |
Returns OK or error.
Create PDF from image file:
Set Variable [$ref; Value:MBS("PDFKit.NewPDFDocument")]
Set Variable [$r; Value:MBS("PDFKit.AddImageFilePage"; $ref; "/Users/cs/Desktop/test.jpg"; 640; 480)]
Set Variable [$r; Value:MBS("PDFKit.WriteToPath"; $ref; "/Users/cs/Desktop/test.pdf")]
Set Variable [$result; Value:MBS("PDFKit.Release"; $ref)]
This function checks for a license.
Created 9th May 2017, last changed 9th May 2017