Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PDFKit.GetPDFPagesPDF
Creates a new PDF Document with the given PDF pages.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 2.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "PDFKit.GetPDFPagesPDF"; PDF; Indexes { ; Filename; DontRenderPreview } ) More
Parameters
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. | |||
Indexes | The index of the page. From zero to PDFKit.GetPDFPageCount-1. You can use several numbers separated with comma and ranges with minus. | "0-2,4,6-9,19" | |
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 |
Result
Returns a container with a PDF document. The plugin adds a JPEG picture of the first page for preview as well as a file name. You can store it in a media field.
Description
Creates a new PDF Document with the given PDF pages.Filename is optional.
See Plugin.SetPreviewSize to control size of preview picture.
If you need more options, please check DynaPDF functions.
Examples
Extract a few pages into a new PDF
MBS( "PDFKit.GetPDFPagesPDF"; $ref; "1,2,5,6"; "newpdf.pdf" )
See also
- PDFKit.GetPDFPageCount
- PDFKit.GetPDFPageImage
- PDFKit.GetPDFPagePDF
- PDFKit.GetPDFPagePDFRef
- PDFKit.GetPDFPagesPDFRef
- PDFKit.GetPDFPageText
- PDFKit.GetPDFPageValue
- PDFKit.Open
- PDFKit.SetCurrentFilter
- Plugin.SetPreviewSize
Blog Entries
- MBS FileMaker Plugin, version 5.1pr1
- Compressing PDFs with PDFKit in FileMaker
- MBS Filemaker Plugin, version 2.2pr4
This function is free to use.
Created 18th August 2014, last changed 12nd August 2022