From c2af309917103f66469b8595bdfce53b7916a07e Mon Sep 17 00:00:00 2001 From: Jane-Kotovich Date: Fri, 15 Oct 2021 19:46:28 +1000 Subject: [PATCH] XFA - Embedded image is missing --- src/core/xfa/template.js | 1 + test/pdfs/xfa_issue14144.pdf.link | 1 + test/test_manifest.json | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 test/pdfs/xfa_issue14144.pdf.link diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js index a778eccc8..c616c54d6 100644 --- a/src/core/xfa/template.js +++ b/src/core/xfa/template.js @@ -138,6 +138,7 @@ const MIMES = new Set([ "image/x-ms-bmp", "image/tiff", "image/tif", + "application/octet-stream", ]); const IMAGES_HEADERS = [ diff --git a/test/pdfs/xfa_issue14144.pdf.link b/test/pdfs/xfa_issue14144.pdf.link new file mode 100644 index 000000000..e3826c69c --- /dev/null +++ b/test/pdfs/xfa_issue14144.pdf.link @@ -0,0 +1 @@ +https://github.com/mozilla/pdf.js/files/7352426/FormDB2_fr.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index dfd9ff0a4..2c6007b6a 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -6002,5 +6002,14 @@ "rounds": 1, "type": "eq", "annotations": true + }, + { "id": "xfa_issue14144", + "file": "pdfs/xfa_issue14144.pdf", + "md5": "6a0e99edcf31e815dd0e1395e8dc15f2", + "link": true, + "rounds": 1, + "enableXfa": true, + "type": "eq", + "lastPage": 1 } ]