Commit graph

2 commits

Author SHA1 Message Date
Ernad Husremovic
f16e38e259 fix PyPDF2 3.x page copying + rename documentation
- Added explicit page copying after cloneReaderDocumentRoot() calls
- Renamed PATCH_PDFWRITER.md to PATCH_PYPDF2_PDFWRITER.md
- Prevents 327-byte empty PDFs in PyPDF2 3.x

🤖 assisted by claude
2025-09-02 19:31:42 +02:00
Ernad Husremovic
7ed9174780 Fix PyPDF2 3.0+ compatibility issues in report_py3o
Add compatibility wrapper classes for PdfFileWriter/PdfFileReader
to support both PyPDF2 2.x and 3.x versions.

Changes:
- Add PyPDF2 compatibility classes in report_py3o/models/py3o_report.py
- Create comprehensive documentation in doc/PATCH_PDFWRITER.md
- Support for appendPagesFromReader method for PDF merging

Resolves PyPDF2.errors.DeprecationError: appendPagesFromReader is deprecated
and was removed in PyPDF2 3.0.0. Use append_pages_from_reader instead.

🤖 assisted by claude
2025-09-02 19:09:50 +02:00