Download Latest Version v2.6.7 source code.zip (25.8 MB)
Home / v1.0.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-12-11 2.6 kB
v1.0.3 source code.tar.gz 2025-12-11 12.6 MB
v1.0.3 source code.zip 2025-12-11 12.6 MB
Totals: 3 Items   25.2 MB 0

Release v1.0.3

What's Changed

License Improvements

  • Removed PyMuPDF (fitz) Dependency: Replaced PyMuPDF (AGPL-3.0) with Poppler for PDF parsing and rendering, maintaining pdf-craft's MIT license compatibility
  • pdf-craft now uses Poppler via pdf2image (MIT) for all PDF operations
  • This change ensures the entire project remains under the permissive MIT license

New Features

  • Custom PDF Handler Support: Added pdf_handler parameter to predownload_models(), transform_markdown(), and transform_epub() functions, allowing users to customize PDF rendering implementation
  • Poppler Integration: Migrated to Poppler (via pdf2image) for PDF parsing and rendering, providing better compatibility and control
  • New Public APIs: Exported PDFHandler, PDFDocument, DefaultPDFHandler, and DefaultPDFDocument for advanced customization
  • RENDERED Event: Added OCREventKind.RENDERED event to track PDF page rendering progress

Breaking Changes

⚠️ Parameter Renamed: ignore_fitz_errors → ignore_pdf_errors

  • Update your code: transform_markdown(..., ignore_pdf_errors=True) instead of ignore_fitz_errors=True
  • Update your code: transform_epub(..., ignore_pdf_errors=True) instead of ignore_fitz_errors=True

⚠️ Exception Renamed: FitzError → PDFError

  • Update your exception handling code accordingly

Dependencies

Bug Fixes

  • Upgraded doc-page-extractor to fix bugs (#280)

Migration Guide

If you're upgrading from v1.0.2, please:

  1. Install Poppler following the Installation [Guide](docs/INSTALLATION.md#4
  2. Update parameter names in your code: ```python # Before (v1.0.2) transform_markdown(..., ignore_fitz_errors=True)

# After (v1.0.3) transform_markdown(..., ignore_pdf_errors=True) ```

  1. Update exception handling if you catch FitzError: ```python # Before (v1.0.2) from pdf_craft import FitzError

# After (v1.0.3) from pdf_craft import PDFError ```

Full Changelog

Full Changelog: https://github.com/oomol-lab/pdf-craft/compare/v1.0.2...v1.0.3

Source: README.md, updated 2025-12-11