PDF Processing API

Overview

The PDF Processing API provides various endpoints to inspect, modify, and manipulate PDF documents. The available operations include inspecting metadata, extracting pages, splitting, merging, and adding attachments to PDFs.

For more up-to-date documentation and usage examples, please refer to the OpenAPI and our Postman collection.

Endpoints

1. Inspect PDF Metadata

Endpoint: POST /api/v1/pdf/inspect

Description: Extracts metadata and structural information from a given PDF file.

Request:

Response:


2. Extract Pages from PDF

Endpoint: POST /api/v1/pdf/pages

Description: Splits a PDF into individual pages and returns them as separate files.

Request:

Response:


3. Split PDF into Multiple Documents

Endpoint: POST /api/v1/pdf/split

Description: Splits a PDF document into multiple smaller PDFs at specified page numbers.

Request:

Response:


4. Merge Multiple PDFs into One

Endpoint: POST /api/v1/pdf/merge

Description: Merges multiple PDF files into a single document.

Request:

Response:


5. Add Attachments to a PDF

Endpoint: POST /api/v1/pdf/attachment

Description: Adds attachments (e.g., images, additional PDFs) to an existing PDF file.

Request:

Response:

Error Handling

The API returns standard HTTP status codes:

Usage Notes


6. Protect a PDF with a password

Endpoint: /api/v1/pdf/protect

Description: Protect the given file with a password. The recipient can open the file only after entering the password.

Request:

Response:


7. Un-protect a PDF with a password

Endpoint: /api/v1/pdf/protect

Description: Remove password protection from a file

Request:

Response:


8. Un-protect a PDF with a password

Endpoint: /api/v1/pdf/visualSignature

Description: Add visual signature (ETSI CAdES detached) to a pdf file.

Request:

Response:

Note: make sure the virtual machine pdf365 can access the specified wallet and the required priviledges has been set.


Contact & Support

For any issues or support requests, visit our GitHub Repository