summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorBenjamin Frantzen (bfr) <bfr@odoo.com>2020-06-03 08:52:25 +0000
committerBenjamin Frantzen (bfr) <bfr@odoo.com>2020-06-03 14:08:37 +0000
commitb1d19c61b1e3318be7b940fda6abfb3591c90c7d (patch)
tree50f33481a8dd0c9452a51918f22ed5e526d63cc6 /addons/web/static/src/js/views/basic/basic_renderer.js
parent42a424db20eaf51f3afc11cefeb0c1f9afcfe66d (diff)
[FIX] tools.pdf: do not crash when PDF has no attachments
Depending on the PDF version and the presence of embedded files, the PDF document catalog `trailer["/Root"]` may not have any Name Dictionary `["/Names"]`, and the latter may not have any `EmbeddedFiles` entry. In that case `getAttachments()` should return an empty list rather than raising a `KeyError`. closes odoo/odoo#52312 Ref: Section 7.7.2, 7.7.4 and 7.11.4 of [PDF 1.7 spec](https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf) Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions