Releases: juca-soft/RabbitPDF
Releases · juca-soft/RabbitPDF
Release list
RabbitPDF 0.3.0
RabbitPDF v0.3.0
RabbitPDF v0.3.0 expands the library with richer document creation, JSON templates, local web preview, PDF-to-template extraction, and practical examples for real-world workflows.
What's New
- Added JSON template rendering with variables, sections, tables, and external data.
- Added local web preview for PDFs and templates.
- Added
RabbitDocument.web(...)to render and preview rich documents in one call. - Added PDF-to-template extraction for creating a JSON template draft from an existing PDF.
- Added 11 complete examples in
examples/, including a Cloudflare-style invoice with automatic pagination. - Improved documentation for templates, web preview, rich documents, examples, and API reference.
- Added CLI support for template preview.
- Expanded test coverage for templates, template extraction, web preview, and examples.
Validation
- Automated tests:
45 passed - Version updated to
0.3.0
RabbitPDF 0.2.0
RabbitPDF 0.2.0
Added
- Advanced document composition with
RabbitDocument. - Text styling with
TextStyle. - Table styling with
TableOptions. - Independent page margins.
- Header, footer, watermark, placeholder image, rich paragraph, and key/value table support.
- PDF operations: merge, extract, split, watermark, encrypt, and decrypt.
- Runnable examples for different PDF workflows.
- Full Portuguese documentation.
- English README.
Improved
- Main README is now in Portuguese.
- CLI documentation expanded.
- PDF operation errors are clearer.
- Watermark operation avoids deprecated
pypdfbehavior.
Tests
- Added tests for examples.
- Added tests for page selection parsing.
- Confirmed direct test execution with
python tests/test_*.py.
Validation
python -m pytestpassed.python -m ruff check .passed.python -m buildpassed.python -m twine check dist\*passed.
RabbitPDF 0.1.0
RabbitPDF 0.1.0
Added
- Added GitHub Actions workflow for publishing RabbitPDF to PyPI using Trusted Publishing.
- Added CLI support for creating PDFs from images with
rabbitpdf create --images. - Added CLI options for
--page-size,--margin,--font-name,--leading, and--stretch-images.
Improved
create_pdf()now acceptspage_sizeandmargin.- PDF creation now validates invalid layout options before writing files.
- Image PDF creation now reports missing image files more clearly.
Tests
- Replaced import-time PDF generation with real creator tests.
- Added CLI tests for text and image PDF creation.