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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Creates a new PDF file with all the given PDF files/references.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 2.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Name | A text with the file name to include with the PDF. | "test.pdf" |
PDFs... | Several PDF references. A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open. The function will fail if one of those is an image file. |
Returns the PDF container value.
Combine two PDF files form two media fields into a new PDF
MBS("PDFKit.Combine"; "test.pdf"; mytable::test1; mytable::test2)
Merge PDFs:
#Start with blank list
Set Variable [$list; Value:""]
#Load PDF from container
Go to Record/Request/Page [First]
Set Variable [$destPage; Value:1]
Loop
Set Variable [$r; Value:MBS("PDFKit.OpenContainer"; Merge PDFs::InputPDF)]
If [MBS("IsError") = 0]
Set Variable [$list; Value:$list & $r & ¶]
End If
Go to Record/Request/Page [Next; Exit after last]
End Loop
Set Field [Merge PDFs::FinalPDF; MBS("PDFKit.Combine"; "merge.pdf"; $list)]
Set Variable [$r; Value:MBS("PDFKit.Release"; $list)]
Created 18th August 2014, last changed 5th June 2021
PDFKit.AppendPages - PDFKit.CombineRef
Feedback: Report problem or ask question.