PDF API: merge, split, compress, rotate and extract PDFs from a list of links

This page is about changing PDFs you point to with links, many at a time. It splits by page, not by file size. It does not read the text in a PDF, does no OCR, does not fill forms and does not open password-protected files.

Teams that collect reports, invoices or forms as PDFs need one merged file, a 200-page file cut into parts, or a smaller file to email, without a person opening each one.

Short version: one or two files → a PDF viewer or a free online tool. A list of PDF links, or the links another Actor collected, merged, split, shrunk or counted, with a link back for each result → PDF Tools on Apify.

Use a PDF viewer or a free online tool itself when

The Actor saves work when

The input on the Actor's page is already filled in: it splits two public US tax forms and keeps pages 1 and 2 of each. In a test run on 22 November 2026 that took about 7 seconds and cost $0.004 for 2 files, plus $0.00005 for the run start.

Good to know:

Price: $0.002 per result file stored, $0.0003 per PDF read with info, and $0.00005 per run. Errors, skipped files and a compress that could not make the file smaller are free. Merging 50 links is one file, $0.002; splitting 50 files into single pages is as many files as pages.

Try the two example forms on Apify

From a script

curl -X POST "https://api.apify.com/v2/acts/northbell~pdf-tools/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"operation":"split","pdfUrls":["https://www.irs.gov/pub/irs-pdf/fw9.pdf","https://www.irs.gov/pub/irs-pdf/f1040.pdf"],"ranges":"1-2"}'

Each row has status ok, error, skipped or unchanged. To merge instead, send "operation":"merge" and leave out ranges. To get the text out of PDFs, see the bulk PDF to text page. To make PDFs from web pages, see the HTML to PDF API page.

Source: the PDF links you give it. Compression uses Ghostscript, run as a separate program.

More guides