Commit graph

2 commits

Author SHA1 Message Date
Ernad Husremovic
4e329a686b Fix PyPDF2 3.0+ compatibility issues in report_qweb_pdf_cover
Add compatibility import logic for PdfFileWriter/PdfFileReader
to support both PyPDF2 2.x and 3.x versions.

Changes:
- Add PyPDF2 compatibility import in report_qweb_pdf_cover/models/ir_actions_report.py
- Create comprehensive documentation in doc/PATCH_PDFWRITER.md
- Basic import compatibility for PDF cover functionality

Resolves PyPDF2.errors.DeprecationError: PdfFileWriter is deprecated
and was removed in PyPDF2 3.0.0.

🤖 assisted by claude
2025-09-02 18:55:52 +02:00
Ernad Husremovic
409c24a420 Fix PyPDF2 3.0+ compatibility issues in report_qweb_encrypt
Add compatibility wrapper classes for PdfFileWriter/PdfFileReader
to support both PyPDF2 2.x and 3.x versions.

Changes:
- Add PyPDF2 compatibility classes in report_qweb_encrypt/models/ir_actions_report.py
- Create comprehensive documentation in doc/PATCH_PDFWRITER.md
- Support for appendPagesFromReader method for PDF encryption

Resolves PyPDF2.errors.DeprecationError: PdfFileWriter is deprecated
and was removed in PyPDF2 3.0.0.

🤖 assisted by claude
2025-09-02 18:55:13 +02:00