Merge PDF Files in Swift

Do you have multiple PDF files you need to combine? If so, you can use the following API to insert a list of up to ten input files to be combined into one PDF; the order in which the input files are placed will even be preserved in the merged document. If necessary for your project, you may also perform this action more than once by using your output file from the first instance as the first input for the second, followed by the rest of the documents you wish to merge.

To call the merge function, you simply need to plug your files into the following example code:

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking

You’ll receive an instant result with your newly merged document. Visit the Cloudmersive website to register for a free account and retrieve your personal API key; this will provide access to 800 monthly calls across our library of APIs.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.