An insurance app merges a claim form, a photo sheet and a repair estimate into claim-2093.pdf , and the pages come out in the right order. Then the recipient's system runs a preflight on the file, bookmark tree included, and that is a harder test than the merge itself.
IronPDF for Swift, which we are building, is coming soon, with early-access sign-up. Apple's PDFKit gets the claim file first.
We work at Iron Software, and the end of this article covers our library, IronPDF.
How do you merge three PDFs with PDFKit?
You load each file as a PDFDocument and copy the pages of the second and third onto the end of the first. PDFKit is Apple's framework for displaying and manipulating PDF documents. It is available on iOS, iPadOS, macOS and visionOS, it is called from Swift or Objective-C, and each PDFDocument has an associated Core Graphics document.
import PDFKit
// Each source file becomes a PDFDocument, and compactMap drops any that fail to load.…