DocVortex 0.2.2
DocVortex 0.2.2 adds a shared PDF layout visualization API for current Middle JSON pages.
- Use
docvortex.visualization.render_layout_pdf()to overlay layout boxes on original PDFs, with explicit original-page mapping for cropped or reordered inputs. - Display block types and original reading-order indices above boxes, with upright labels on rotated pages and support for CropBox offsets.
- Give page footnotes an independent teal color and page auxiliary blocks a consistent gray color. Labels sit 1 pt from box edges.
- Keep
PDFDocument.draw_layout_bbox()as the file-writing wrapper used by downstream integrations. Private legacy diagnostics helpers are removed. - Preserve the existing Middle JSON schema and code/algorithm block structure.
Install:
pip install docvortex==0.2.2The publishing workflow runs the cross-platform validation suite before uploading the wheel and source distribution to PyPI.