Skip to content
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Insert PDF Pages API

❖ Feature Description

Insert pages from another PDF into the main PDF.

❖ Request Mode

Sync Request ✓
Process the request inline and return the result file when it completes. Best for small files and immediate feedback.
Async Request
Accept the task first, then use taskId to query status and download the result. Best for large files and batch jobs.

▎Call Flow

1Upload the file
2Call the synchronous endpoint
3Download the result

Insert PDF Pages API

POSThttp://localhost:8080/api/v1/process/pdf/insert-from-pdf

❖ Request Parameters

Authentication credential sent in the header: x-api-key. Sign in to the Dashboard API management page to view the API Access Key for the current deployment.

Body Parameters multipart/form-data

No file selected
Target PDF file.
No file selected
PDF file to insert into the target PDF.
PDF request JSON string. See Insert PDF Pages request parameters for details.
🔗Request Example
curl --request POST \
  --url http://localhost:8080/api/v1/process/pdf/insert-from-pdf \
  --header 'x-api-key: YOUR API-KEY' \
  --form [email protected] \
  --form [email protected]
✓Response Example
200 OK
Processed successfully. Returns the result file stream.