Repository navigation
Releases
Releases · MattBetancourt/pypdftomd
pypdftomd v0.4.6
- Location probes (
--findand--toc): add--find QUERY(find_in_pdf)
for case-insensitive, whitespace-normalized text-layer search with whole-word
snippets,matched_pages, and range-compressedsearchable_pages/
non_searchable_pagesreporting, and--toc(get_pdf_toc) for reading
embedded PDF outlines with 1-indexed physical pages. Both honor--pages,
support batch inputs, emit raw UTF-8 JSON without writing files, and are
exported from the top-levelpypdftomdpackage (__all__, 41 exports). --analyzeupgrades: surfacetabular_pages_needing_visual_verification
directly in--analyzeJSON output and compressassessed_pagesto--pages
range notation (e.g.,"1-93"instead of a per-page array).- Short-PDF font-scan progress cadence: use a 4-page minimum stride for
stderr font-scan progress lines so short PDFs emit cleaner progress matching
4-page extraction chunks. - Agent skill & docs alignment: update
skills/pypdftomd/SKILL.md,
README.md, anddocs/troubleshooting-hung-pdfs.mdfor--find,--toc,
confidence,reasons,tabular_pages_needing_visual_verification,
range-compressedassessed_pages, and issuer-IR / underwriter deal-docs PDF
discovery.
Commit: 1f13d8b845d50d402acc96c912dd9e8c193592ae
pypdftomd v0.4.5
- Drop
pdfminer.sixruntime dependency: vendor the Adobe Glyph List 2.0
table (src/pypdftomd/glyph_list.py, BSD-3-Clause) so base installs no
longer pullpdfminer.six,cryptography, orcharset-normalizer. - Input & resource bounds: validate
--pagesendpoints before range
expansion, reject user-password-locked PDFs during preflight before cache or
directory setup, and bound single-page raster allocations to 128 MiB. - OCR, cache & artifact hardening:
- Scope OCR cache fingerprints to the selected engine so Tesseract lookups
never import or spawn RapidOCR (and vice versa). - Publish cache payloads and metadata sidecars atomically with strict file
descriptor ownership and temp-file cleanup. - Preserve Tesseract TSV word alignment on malformed, CRLF, or embedded-tab
rows; deliver RapidOCR inputs cleanly and read result containers safely. - Scope forced-OCR embedded fallback retries to failed pages only while
retaining embedded warnings. - Write pixmap fallback images and suffixless contact sheets as
.png.
- Scope OCR cache fingerprints to the selected engine so Tesseract lookups
- Diagnostics & typed public surface: keep warnings and MuPDF diagnostics
offstdoutwhensys.stderris absent, tighten warning marker prefix
matching, shippy.typedwith reconciled__all__/__dir__()exports, and
documentoptions=precedence over scalar keyword arguments. - CI & documentation: pin GitHub Actions to commit SHAs with
persist-credentials: false, pintwine==7.0.0, add Python 3.13 to CI,
expand installed-wheel smoke and release-note tests, and alignREADME.md,
skills/pypdftomd/SKILL.md, anddocs/troubleshooting-hung-pdfs.mdwith the
shipped CLI and Python API.
Commit: 16f7ad455f102f92a8e02a906fa82e870d57524d
pypdftomd v0.4.4
- Salvage surviving pages when a parallel worker process dies mid-run. Keep
completed chunks, retry each unconfirmed page once in an isolated single-page
worker, and mark pages that still crash withembedded_extraction_failedor
ocr_page_render_failedwarnings. Lost pages appear underfailed_pagesin
--jsonoutput and stderr summaries; degraded runs skip the cache and exit
3when--fail-on-warningis set. - Skip materializing embedded images during font pre-pass reads and during
text reads on pages with dense tiled raster artwork (> 500image ops),
preventing multi-minute hangs on complex visual PDFs. - Report sorted 1-indexed
dense_vector_pages(> 5000vector ops) and
dense_image_pages(> 500image ops) in--analyzeoutput and
get_pdf_metadata(...)["extraction_assessment"]without changing OCR routing. - Print throttled progress lines to stderr during cold CLI runs (font
scanning, page extraction, and OCR) unless--quietis passed, leaving
stdout as Markdown or JSON. - Speed up
--analyzeby sharing a single page read, capping glyph replay on
large streams, and assessing only the pages selected by--pages. Also
includepage_countin--analyzeJSON output. - Fix CLI and Python API option parity, shorten
--helpoutput, reduce
unnecessary Markdown escaping, strip stray zero-width spaces, and refine
rule-band table header detection. - Improve error reporting: include per-page warning counts on total failure,
fall back to the exception class name when an error message is empty, and
use consistent prefixes for locked-PDF errors. - Add a troubleshooting guide for slow, hung, or crashing PDFs
and updateskills/pypdftomd/SKILL.mdwith dense-artwork inspection and
failed_pagesrecovery steps.
Commit: c8aeda33b7616e632c327889e85504da1b72a115
pypdftomd v0.4.1
- Refresh PyPI and GitHub presentation: add an above-the-fold Quickstart,
include theModels / Runtimecolumn in the benchmark comparison table,
replace the raw Mermaid block with a PyPI-compatible text pipeline diagram,
and ensure all README links are absolute. - Update PyPI package metadata (
description,keywords,classifiers, and
[project.urls], including the verifiedpypdftomd-benchrepository link). - Add repository community health and hygiene files (
CODE_OF_CONDUCT.md,
feature request and issue chooser templates,.gitignore,.gitattributes),
and document--tables-outputinskills/pypdftomd/SKILL.mdcompatibility. - No extraction-pipeline or CLI behavior changes from
0.4.0.
Commit: 74a272fed76223815c29876400002e41c7174466
pypdftomd v0.4.0
- Publish as
pypdftomdon PyPI and GitHub Releases for Python 3.12 and later,
with bounded runtime dependency ranges and headless OpenCV (opencv-python-headless)
for[ocr-rapid]. - Update runtime dependencies:
Pillow(12.2.0->13.0.0) andpypdf
(6.12.1->6.21.4). - Install the
pypdftomdskill (skills/pypdftomd/, MIT-licensed) in coding
agents viagh skillornpx skills. - Process multiple PDFs and directories, including recursive directory trees,
with per-document reports or aggregate JSON output. - Use
--fail-on-warning,--quiet, and--versionfor scripted workflows.
Batch processing continues after a document fails and reports failures through
its exit status. - Check OCR backend availability with
--check-ocr, configure the Tesseract
timeout, and control result caching with--cache-diror--no-cache
(PYPDFTOMD_CACHE_DIR).
Commit: 55389a227b10d2f5f09dff1a7db35bdd1b1959ce