Edit, compress, and protect PDF documents via API
Zyphur offers a fast API for PDF manipulation tasks, including merging (joining), splitting, compressing, adding watermarks, and password protection.
website·Indexed 30 days ago
https://docs.zyphur.meA PDF rendering and tools API providing capabilities to merge, split, compress, optimize, protect, and repair PDF files. It includes advanced rendering features such as layout control, style parameters, OCR for structured information extraction, and support for digital signatures and logos.
multipart/form-data.POST /merge
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-dataPOST /split
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_KEY
-- Form Data --
file: [Binary PDF File]
pages: '1,3,5-7,10'
store: trueqpdf repairs and rebuilds the PDF structure; second, Ghostscript compresses images based on the selected quality preset; finally, qpdf linearizes the file to enable 'Fast Web View' for progressive loading.pages parameter accepts a 1-based index and supports flexible ranges. Examples of valid page strings include '1,3,5' (individual pages), '2-6' (a range), or '1,3,5-7,10' (a mix of both). If a requested page index exceeds the total number of pages in the document, the API will return an error (e.g., 'El documento solo tiene 4 páginas. Solicitaste la página 7.').POST /split-pdf
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_KEY
--Form-Data--
file: [Binary PDF File]
pages: "1,3,5-7,10"
store: trueThe PDF Optimization API allows you to compress and repair PDF files using a pipeline that includes structure reconstruction (via qpdf), image reduction (via Ghostscript), and linearization for Fast Web View.
All requests must include the following headers:
Authorization: Bearer YOUR_API_KEYContent-Type: multipart/form-datafile (Required): The PDF file to be optimized.quality (Required): A string defining the compression level. Options include:screen: Maximum compression, lowest quality.ebook: Balanced compression (Recommended).printer: High quality.prepress: Maximum quality.store (Optional): Boolean flag to determine if the file should be stored.POST /optimize
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
--boundary
Content-Disposition: form-data; name="file"; filename="document.pdf"
[Binary Data]
--boundary
Content-Disposition: form-data; name="quality"
ebook
--boundary
Content-Disposition: form-data; name="store"
true
--boundary--