Skip to content

pdf-book-to-llm v0.3.0

Choose a tag to compare

@deadboyccc deadboyccc released this 17 Nov 19:44
· 4 commits to main since this release

book2md is now verified on the real Docling models, on every push. The README's old caveat — that Docling's layout, table and code models had never been exercised — no longer applies.

Added

  • End-to-end tests with real models. CI builds a three-page sample book (headed prose, a bordered table, a code listing, and a raster figure with a caption), runs the installed book2md command on it with the locked Docling version, and checks:
    • a .md and a .png per page, each starting with its <!-- PAGE n --> marker;
    • heading and paragraph text survive;
    • the table becomes a Markdown table with every row;
    • the listing lands in a fenced code block;
    • the figure becomes <!-- image -->, with its caption kept;
    • PNG width follows --scale, and --pages 2-3 writes <book>_p2-3/ with PDF page numbers kept;
    • a start page past the end, or a file that isn't a PDF, fails with one line and writes nothing.
  • The converted sample pages are uploaded as a CI artifact, so you can see real output for each commit.
  • CI also runs on milestone-* branches, so heavy changes go green before main moves.

Observed in real output

  • Code blocks are detected and fenced, but indentation may come back as tabs, and no language tag is set.

Tested

  • 48 unit tests on Linux, macOS and Windows, plus 10 end-to-end tests with real Docling models (about 50 s in CI with cached weights).

Assets

File What
book2md-0.3.0-py3-none-any.whl Wheel
book2md-0.3.0.tar.gz Source distribution
SHA256SUMS Checksums