Skip to content

Conversation

@YoussefEttamimi
Copy link

  • Use strict=False to handle PDFs with minor format issues
  • Add try-catch for PDF read operations with clear error messages
  • Add try-catch for PDF write operations with helpful user feedback
  • Prevent crashes when processing PDFs with encoding issues

This improvement handles PDFs that contain encoding problems or illegal characters that would normally cause PyPDF2 to fail with PdfReadError, providing a more robust document signing experience.

@OCA-git-bot
Copy link
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

@YoussefEttamimi YoussefEttamimi force-pushed the fix-corrupted-pdf-handling branch from 710f7e2 to 34f01d5 Compare December 23, 2025 16:14
- Use strict=False to handle PDFs with minor format issues
- Add try-catch for PDF read operations with clear error messages
- Add try-catch for PDF write operations with helpful user feedback
- Prevent crashes when processing PDFs with encoding issues
- Use 'raise from' for proper exception chaining

This improvement handles PDFs that contain encoding problems or
illegal characters that would normally cause PyPDF2 to fail with
PdfReadError, providing a more robust document signing experience.
@YoussefEttamimi YoussefEttamimi force-pushed the fix-corrupted-pdf-handling branch from 34f01d5 to 42005df Compare December 23, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants