PDF Tools API Reference
Integrate professional PDF manipulation directly into your applications. RESTful endpoints for merging, splitting, watermarking, protecting, and more.
Getting Started
All endpoints accept files as multipart/form-data and return the
processed PDF as application/pdf.
Base URL: https://pdf.lyrafox.com
Example request using cURL:
curl -X POST "https://pdf.lyrafox.com/api/PdfApi/watermark?text=CONFIDENTIAL&opacity=0.3" \ -F "[email protected]" \ -o watermarked.pdf
API Reference
Merge multiple PDF files into a single document.
one or more PDF files.
application/pdf — The processed file stream.Split a PDF into the specified pages.
the PDF to split.
application/pdf — The processed file stream.Extract specific pages into a new PDF.
the source PDF.
application/pdf — The processed file stream.Rotate all pages by a given angle.
the PDF to rotate.
application/pdf — The processed file stream.Add page numbers to each page.
the PDF to number.
position — e.g. bottom-center.
application/pdf — The processed file stream.Apply Bates numbering (legal stamping) to each page.
the PDF to stamp.
start (default 1)
digits (default 6).
application/pdf — The processed file stream.Add a text watermark to every page.
the PDF to watermark.
opacity — 0.0–1.0 (default 0.3).
application/pdf — The processed file stream.Stamp text onto each page at a given position.
the PDF to stamp.
position — e.g. center (default).
application/pdf — The processed file stream.Encrypt a PDF with user and owner passwords.
the PDF to protect.
ownerPassword.
application/pdf — The processed file stream.Remove password protection from a PDF.
the protected PDF.
application/pdf — The processed file stream.Reduce the file size of a PDF.
the PDF to compress.
application/pdf — The processed file stream.Edit document metadata (Title, Author, Subject, Keywords).
the PDF to update.
application/pdf — The processed file stream.