pdf_helper.: PDF file parsing failed: '/Names'
bosd opened this issue · 4 comments
pdf_helper is always throwing an error, while working with a text / image based pdf as import.
pdf_helper
Describe the bug
The server log is polluted with ERROR lines which actually are no errors.
2023-10-07 17:59:57,180 1787 ERROR odoo odoo.addons.pdf_helper.models.helper: PDF file parsing failed: '/Names'
To Reproduce
Affected versions:
14.0
Steps to reproduce the behavior:
- Upload an pdf to any module which uses pdf_helper. Example
account_invoice_import_invoice2data
Expected behavior
No error lines in the logger on standard functionality.
I can reproduce it, even if module works and passes tests.
Yeah, I find it annoying too.
Reason: https://github.com/OCA/edi/blob/14.0/pdf_helper/models/helper.py#L26
For now I would simply switch it to debug.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.