edi icon indicating copy to clipboard operation
edi copied to clipboard

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

Open bosd opened this issue 2 years ago • 3 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:

  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.

bosd avatar Oct 07 '23 18:10 bosd

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

pcastelovigo avatar Dec 14 '23 12:12 pcastelovigo

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.

simahawk avatar Dec 14 '23 14:12 simahawk

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

bosd avatar Dec 30 '23 12:12 bosd

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.

github-actions[bot] avatar Jun 30 '24 12:06 github-actions[bot]