OCA / edi

GNU Affero General Public License v3.0
116 stars 297 forks source link

pdf_helper.: PDF file parsing failed: '/Names' #825

Open bosd opened 9 months ago

bosd commented 9 months ago

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:

  1. 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.

pcastelovigo commented 6 months ago

I can reproduce it, even if module works and passes tests.

simahawk commented 6 months ago

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.

bosd commented 6 months ago

Fix for V16 on it's way in: https://github.com/OCA/edi/pull/898

github-actions[bot] commented 1 week ago

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.