Skip to content
PDF Manipulation Page duplication & cloning

Duplicate PDF Pages API

Duplicate PDF pages programmatically in one API call. Clone form templates, repeat sections, and generate multi-page documents automatically. Perfect for creating batch forms, report templates, and document packages. Works seamlessly with our PDF merge API for complete document assembly.

No credit card required • Free tier available

8,700+ teams use xspdf
Median latency: 270ms
99.95% uptime SLA

Duplicate Pages API Example

REST API
curl -X POST "https://api.xspdf.com/v1/manipulate/duplicate-pages" \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"input_url":"https://files.example.com/form.pdf","options":{"pages":[1],"copies":5,"position":"after"}}'

Speed

270ms

Success

99.95%

Options

6+

8,700+

Active Teams

270ms

Median Latency

99.95%

Success Rate

18M+

Pages Duplicated

Copying PDF Pages Manually Slows Down Operations

You need 50 copies of a form template. Or duplicate specific sections for batch processing. But manually copying pages in Adobe or online tools doesn't scale.

Manual Copy-Paste Wastes Time

Need 25 copies of a single-page form? You're clicking "duplicate page" 25 times in Adobe Acrobat. Need 10 copies of pages 3-5? That's 30 manual operations. No way to automate or batch.

Batch Form Generation Is Impossible

HR needs 100 onboarding packets. Sales needs 50 contract templates. Operations needs duplicated shipping forms for each order. Desktop tools can't generate batches of forms programmatically.

No API for Document Assembly

Your SaaS generates reports that need repeated sections. Your workflow tool creates packets from templates. But you can't duplicate pages programmatically, so you're stuck with slow manual processes or complex PDF libraries.

The Hidden Cost of Manual Page Duplication

An operations coordinator making $50,000/year spends 6 hours weekly creating batch forms by duplicating pages manually. That's $7,800 annually in labor. Add Adobe licenses ($1,800/year for 10 users), errors from repetitive clicking, and delayed shipments waiting for forms. Total annual cost: $12,000+.

xspdf duplicates pages automatically for $79/month. Create 1,000 forms per month programmatically. ROI in the first week.

Duplicate Pages in One API Call

Specify which pages to duplicate and how many copies. Pages are inserted after the original or at the end. Clone entire sections or individual pages instantly.

1

Flexible Page Selection

Duplicate page 1 five times. Or duplicate pages 2-4 ten times each. Or duplicate multiple non-consecutive pages in one request. Specify any combination of pages and copy counts.

2

Control Insertion Position

Insert copies immediately after the original page with position: "after". Or append all copies to the end of the document with position: "end". Perfect for form packets or batch processing workflows.

3

Preserve Everything

All form fields, annotations, images, and formatting are preserved exactly. Duplicated pages are pixel-perfect clones. No quality loss, no formatting changes, no broken elements.

Python SDK Example

pip install xspdf
response = requests.post(
    "https://api.xspdf.com/v1/manipulate/duplicate-pages",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
        "input_url": "https://files.example.com/form.pdf",
        "options": {
            "pages": [1, 2],
            "copies": 3,
            "position": "after"
        }
    }
)
output_url = response.json()["output_url"]

Response in 270ms

{
  "output_url": "https://files.xspdf.com/output.pdf",
  "pages_duplicated": 2,
  "copies_created": 6,
  "total_pages": 8
}
View API Documentation

Powerful Page Duplication Features

Everything you need to clone pages, create form packets, and automate document assembly.

Multi-Page Duplication

Duplicate any combination of pages in one request. "pages": [1, 3, 5] duplicates those three pages. "pages": [2] duplicates just page 2. Mix and match as needed.

Variable Copy Counts

Create 1 copy, 5 copies, or 100 copies per API call. Set "copies": 10 to duplicate selected pages 10 times each. Perfect for batch form generation and template multiplication.

Position Control

Insert copies immediately after original page or append to end. "position": "after" keeps copies together with source. "position": "end" collects all copies at document end.

Perfect Preservation

All content preserved exactly: form fields, annotations, bookmarks, images, fonts, and formatting. Duplicates are pixel-perfect clones of the original pages. No quality loss.

Range Support

Duplicate page ranges with "pages": [2, 3, 4] or specify individually. Clone entire sections or specific pages. Handles complex duplication patterns with simple syntax.

Lightning Fast

Duplicate 50 pages in under 300ms. Enterprise-grade performance for batch processing. Handles large documents efficiently. Webhook notifications for async processing.

Frequently Asked Questions

Everything you need to know about duplicating PDF pages programmatically.

Can I duplicate multiple pages at once?

Yes. Pass an array of page numbers: "pages": [1, 2, 3] duplicates all three pages. Each page is duplicated the number of times specified in "copies". So "pages": [1, 2], "copies": 5 creates 10 total duplicates (5 of page 1, 5 of page 2).

Where do duplicated pages appear in the document?

Control position with the "position" parameter. "after" inserts copies immediately after each original page (page 1, copy, copy, page 2, copy, copy, etc). "end" appends all copies to the end of the document (original pages stay in place, all copies at end).

Are form fields preserved when duplicating pages?

Yes. All form fields, annotations, bookmarks, and interactive elements are preserved exactly in duplicated pages. Each copy is a complete clone with fully functional form fields. Perfect for creating multiple blank forms from a template.

Can I duplicate a range of pages like 3-7?

Yes. Specify the range as an array: "pages": [3, 4, 5, 6, 7]. Each page in the range is duplicated according to your "copies" setting. This makes it easy to clone entire sections of documents for batch processing or packet creation.

What's the maximum number of copies I can create?

You can create up to 1,000 copies per API call on standard plans. For enterprise customers needing larger batches, contact us for custom limits. Processing time scales linearly with copy count but typically remains under 1 second even for hundreds of copies.

Start Duplicating Pages Today

Free tier includes 100 page operations per month. No credit card required. Upgrade anytime as you scale.