FormatForge — Document Converter & OCR avatar

FormatForge — Document Converter & OCR

Pricing

from $3.00 / 1,000 file converteds

Go to Apify Store
FormatForge — Document Converter & OCR

FormatForge — Document Converter & OCR

Convert documents between formats and run OCR — PDF, DOCX, XLSX, HTML, Markdown and PNG/JPEG/TIFF images. Files come from a URL, a key-value-store record or base64; one dataset item per file, pay per event.

Pricing

from $3.00 / 1,000 file converteds

Rating

0.0

(0)

Developer

Khristian Kopachelli

Khristian Kopachelli

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Convert documents between formats and run OCR, in batch. Give the Actor a list of files — each a public HTTPS URL, a key-value-store record key, or inline base64 — and a target format. Every file produces one dataset item; converted output up to 64 KB is inline, larger output is stored in the run's key-value store.

Pure TypeScript/WASM — no LibreOffice, no macros, no shell-out. Your files are parsed by maintained open-source libraries only.

What it converts

FromTo textTo markdownTo htmlTo jsonTo csv
PDF (text layer)✓✓———
PDF (scanned, no text layer)failed — "no text layer"failed — same———
DOCX✓✓✓——
XLSX / XLS———✓✓
HTML✓✓———
Markdown / plain text✓✓✓——
PNG / JPEG / TIFF✓ (OCR)————

The from type is sniffed from the bytes — a renamed or mislabeled file is detected correctly or reported failed, never guessed. The filename extension is used only when the bytes are inconclusive, and never overrides a known type.

Input

{
"files": [
{ "name": "report.pdf", "url": "https://example.com/files/report.pdf", "to": "text" },
{ "name": "sheet.xlsx", "keyValueStoreKey": "INPUT-sheet", "to": "csv" },
{ "name": "scan.png", "base64": "iVBORw0KGgo…", "to": "text" }
],
"defaultTo": "text",
"maxItems": 100,
"fetchConcurrency": 2,
"validateOnly": false
}
  • Exactly one source per file: url, keyValueStoreKey, or base64.
  • url: public https only, port 443, no credentials. Private, loopback, link-local and metadata addresses are refused after DNS resolution. Redirects are not followed.
  • keyValueStoreKey: a record in this run's default key-value store — the way to feed files you uploaded with the run.
  • base64: inline file content (encoded size ≤ 4 MB).
  • to: text, markdown, html, json or csv. Falls back to defaultTo.
  • validateOnly: check inputs without fetching, converting or charging.

Output

One dataset item per file:

  • status: converted · ocr · failed · skipped
  • source — url / keyValueStore / base64 (the URL itself is never stored)
  • detectedType, to, reason (always populated — ok on success)
  • outputText — the result inline (≤ 64 KB)
  • outputKey + outputBytes — when the result is larger, it is stored in the run's key-value store under output/<index>-<name>
  • ocrPages, ocrConfidence — for OCR results
  • fetchLatencyMs, convertLatencyMs, bytesIn

A run summary is written to the OUTPUT key-value-store record.

Limits (hard caps, never "unlimited")

LimitValue
Files per run100
File size25 MB
Base64 source4 MB encoded
Per-file fetch60 s
Per-file conversion60 s
PDF pages per file500
OCR images per filesingle-page only (multi-page TIFF refused)
Inline output64 KB (larger → KVS, ≤ 8 MB)

Exceeding a cap stops the run with a clear status — nothing is silently truncated.

Pricing

Pay per event:

  • formatforge-file — per file that reached conversion: converted, ocr, or a converter failed (the work was done). Not charged for skipped inputs, fetch/sniff/unsupported-pair failures, or validateOnly runs.
  • formatforge-ocr-page — per OCR'd page.

validateOnly runs are free. Final prices are set by the owner at publication.

Honest limitations

  • Scanned PDFs are not OCR'd in v1. A PDF with no text layer fails with a clear reason. OCR works on PNG/JPEG and single-page TIFF images — a multi-page TIFF is refused (split it first).
  • No PDF/DOCX generation — this Actor extracts and converts to text-family formats, not back into office documents.
  • Password-protected and encrypted files are not supported.
  • No browser-TLS impersonation. A CDN that answers 403 gets an honest failed item with the HTTP status.
  • OCR downloads its language data once. The first OCR run fetches eng.traineddata from the tesseract.js CDN; without network access OCR reports failed rather than hanging.
  • XLS (legacy binary) is read as XLSX where possible; results vary — XLSX is the tested path.

Notes for API users

  • This Actor processes files you supply — it is not a crawler and stores nothing beyond the run's own storage (normal retention).
  • It identifies itself with FormatForge/1.0 (+https://apify.com/kopachelli/formatforge).
  • State is checkpointed per file: an interrupted run resumes without re-processing finished files.