# Changelog of Document to Markdown (PDF, Office, OCR) for AI agents (`sapphire_studio/document-to-markdown`) Actor

- **URL**: https://apify.com/sapphire_studio/document-to-markdown/changelog.md
- **Full Actor documentation**: https://apify.com/sapphire_studio/document-to-markdown.md

## Changelog

### 1.1.0 (2026-10-27)

- New formats: legacy Word `.doc`, legacy PowerPoint `.ppt`, RTF, OpenDocument text `.odt` and OpenDocument presentations `.odp`, converted with LibreOffice (headless) and then read like DOCX and PPTX: headings, lists, tables, links, footnotes, one page per slide. New `format` values `doc`, `ppt`, `rtf`, `odt`, `odp`; new `extraction` value `libreoffice`; `metadata.converted_with` and `metadata.conversion_ms` on those rows. These files used to be `invalid_input`.
- New charge event `ocr_page`: one per OCRed page or image of a successfully converted document, on top of the `document` event. Text-layer pages are not OCRed and not charged. Before each OCR page the Actor checks that the maximum charge per run can still pay for it; pages it cannot pay for are skipped with a warning instead of being OCRed.
- SUMMARY adds `charged_ocr_pages`, `libreoffice_documents` and `libreoffice_avg_s`.
- The Docker image moved from Alpine (`apify/actor-node:22`) to Debian (`node:22-trixie-slim`), because LibreOffice's headless packages exist only there and are about a third of the Alpine size. Every other format path is unchanged.
- No input or output key was renamed, removed or moved.

### 1.0.0 (2026-10-27)

- First public release.
- Input: up to 1000 document URLs (PDF, DOCX, PPTX, XLSX, XLS, ODS, CSV, TSV, HTML, EPUB, Markdown, text, JSON, XML, PNG, JPG, TIFF, BMP, GIF, WebP); Google Drive, Google Docs, Dropbox and GitHub share links are converted to direct downloads.
- One row per document: Markdown with headings, paragraphs, lists and GFM tables; title, author, dates, page count, word and token counts, table count; optional per-page Markdown and RAG chunks with heading and page ranges.
- PDF layout analysis: multi-column reading order, table detection, running header and page number removal, hyphenation repair.
- OCR (Tesseract) for scanned PDF pages and images in English, German, French, Spanish, Italian, Portuguese and Dutch at 200 dpi; automatic, always or off; capped at 10 OCR pages per document by default.
- Pay per event: one `document` charge per successfully converted document; failed, blocked and skipped documents are free. Respects the maximum charge per run.
- Safe downloads: private network addresses refused, size cap, bot-protection pages reported as `blocked` (never solved), per-site and global stop rules, clean stop before the run timeout, resume after a platform migration without repeating or re-charging documents.
