Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates a new PDF Document with the given PDF page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 2.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open. | |||
index | The index of the page. From zero to PDFKit.GetPDFPageCount-1. | 1 | |
Filename | Optionally, the file name to use for the container value. | "output.pdf" | Optional |
DontRenderPreview | Pass 1 to not create a JPEG with preview of first page as part of the container. | 0 | Optional |
Returns a container with a PDF document. The plugin adds a JPEG picture for preview as well as a file name. You can store it in a media field.
Extract page 6 into a new PDF:
MBS( "PDFKit.GetPDFPagePDF"; $ref; 5; "newpdf.pdf" )
This function is free to use.
Created 18th August 2014, last changed 12nd August 2022