Skip to main content
REST API

A REST endpoint for every document operation.

One consistent HTTP API for every document operation. Authenticate with an API key and call it from any language or runtime.

One call

Send a document, get one back.

  • Consistent shape. Every action takes a base64 document and JSON options, and returns the processed file.
  • Any language. Plain HTTPS with an API key header. No SDK required, though libraries exist.
  • Async ready. Long jobs return a status URL you can poll until the result is ready.
convert-to-pdf.sh
curl -X POST https://api.pdf4me.com/api/v2/ConvertToPdf \
  -H "Authorization: Basic YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docContent": "<base64 file>",
    "docName": "input.docx"
  }'
The reference

15 categories, 100+ endpoints.

Open a category to see its endpoints, each with a description and a link to the docs.

13 endpoints

Convert

Move between formats

Turn Word, Excel, PowerPoint, HTML, Markdown, images and 50+ formats into PDF, and PDFs back into editable documents. Create archival PDF/A, flatten or linearize for the web.

7 endpoints

Edit

Change a finished PDF

Change a finished PDF without the source file: add headers, footers and page numbers, apply signatures, stamps and watermarks, adjust margins or embed attachments.

6 endpoints

Merge & Split

Combine and separate

Combine documents into one file or overlay them, then split by page range, page count, text pattern, barcode or Swiss QR marker.

1 endpoint

Optimize

Shrink and speed up

Reduce PDF file size with configurable compression while keeping the document readable and print-ready.

5 endpoints

Organize

Reorder and clean up pages

Reorder and clean up pages: remove blank or specific pages, extract a subset into a new document, and rotate whole documents or single pages.

5 endpoints

Barcode

Barcodes, QR and Swiss QR

Add, read and create barcodes and QR codes: embed 50+ barcode types into PDFs, decode them back out, generate standalone codes, and handle Swiss QR payment bills end to end.

2 endpoints

Forms

Fill and build PDF forms

Populate AcroForm fields from JSON and add interactive text boxes, checkboxes, radio buttons and dropdowns to any PDF.

6 endpoints

Extract

Pull data out of documents

Pull structured content out of documents without AI: form data, text by expression, tables, embedded resources and attachments.

2 endpoints

Find & Search

OCR, find and replace

Make scanned PDFs searchable with OCR and find and replace text patterns across a document.

5 endpoints

Generate

Documents from templates

Merge Word or HTML templates with your data to produce PDFs or Word files, one at a time or in bulk, with full track-changes support.

2 endpoints

Security

Protect and unlock

Add password protection and permission restrictions, or remove protection with the owner password.

3 endpoints

PDF Operations

Inspect and repair PDFs

Read a PDF's metadata and structure, and repair corrupted or malformed documents.

13 endpoints

Image Operations

Work with image files

Compress, convert, OCR, watermark, crop, resize and rotate images, and read or strip EXIF and metadata.

17 endpoints

Excel Operations

Automate spreadsheets

Automate spreadsheets: merge files, add, update and delete rows, manage worksheets, watermark, secure and parse CSV.

13 endpoints

Word Operations

Automate Word documents

Automate Word documents: merge, split, compare, replace text, watermark, secure, delete pages and refresh the table of contents.

Get your documents done.

Build it into your product with the API, automate it with no code, or use the free tools in your browser. No credit card to begin.

Start with a single callcurl -X POST https://api.pdf4me.com/v1/ConvertToPdf

Free tier · No credit card required