diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 41595b4a36b0f..11c83d04f4dc0 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -3905,7 +3905,7 @@ class PartialEvaluator { let defaultVMetrics; if (properties.composite) { const dw = dict.get("DW"); - defaultWidth = Number.isInteger(dw) ? dw : 1000; + defaultWidth = typeof dw === "number" ? Math.ceil(dw) : 1000; const widths = dict.get("W"); if (Array.isArray(widths)) { diff --git a/test/pdfs/bug1903731.pdf.link b/test/pdfs/bug1903731.pdf.link new file mode 100644 index 0000000000000..d7524dc9bcdc3 --- /dev/null +++ b/test/pdfs/bug1903731.pdf.link @@ -0,0 +1,2 @@ +https://bugzilla.mozilla.org/attachment.cgi?id=9408642 + diff --git a/test/test_manifest.json b/test/test_manifest.json index a1b849853d741..0882c41858296 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -10097,5 +10097,13 @@ "md5": "73922be020083d54747af18a4d5e0768", "rounds": 1, "type": "eq" + }, + { + "id": "bug1903731", + "file": "pdfs/bug1903731.pdf", + "md5": "c90d1b03a62d0221e5f5609e3db16a38", + "rounds": 1, + "link": true, + "type": "eq" } ]