PDF Tools

PDF tools — ERPFit Craft
📄
Drop a PDF here, or click to choose

Estimated output

📝
Drop a PDF to extract its text layer

Extracted text

🔍
Drop a scanned PDF to recognize text (OCR)

OCR result

Programmatic access via x-api-key header. Get a key at auth.erpfit.com.

Verify key

curl -H "x-api-key: ef_craft_..." \
  https://pdf.erpfit.com/api/me

Compress

curl -H "x-api-key: ef_craft_..." \
  -F [email protected] -F level=recommended \
  https://pdf.erpfit.com/api/compress -o out.pdf

Extract text

curl -H "x-api-key: ef_craft_..." \
  -F [email protected] -F format=json -F clean=true \
  https://pdf.erpfit.com/api/extract

OCR (async ticket)

# Submit
curl -H "x-api-key: ef_craft_..." \
  -F [email protected] -F lang=vi -F dpi=200 \
  https://pdf.erpfit.com/api/ocr
# → {"ticketId":"abc123",...}

# Poll result
curl https://pdf.erpfit.com/api/ticket/abc123/result

Auth

Both x-api-key and Authorization: Bearer headers are accepted. Without a key, requests must originate from the browser (CSRF-protected).

Extract: clean=true

Strips zero-width spaces (U+200B, U+200C, U+200D, U+FEFF) and collapses whitespace runs. Useful when processing extracted text programmatically.

Honest benchmark

File Before After Saved
Scanned doc · 4 pages2.06 MB250 KB−88%
Scanned doc · 5 pages2.85 MB408 KB−86%
Scanned doc · 10 pages2.96 MB672 KB−78%
Already-optimized scan · 100 pages4.07 MB3.96 MB−3%