1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 07:38:07 +02:00

Normalize the BBox entry in Tiling Pattern dictionaries (issue 8117)

According to the PDF specification, see http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G7.3982967, the `BBox` entry should have the form `[left, bottom, right, top]`.
Since some PDF generators apparently violates the specification, we normalize the `BBox` to ensure that the pattern is (correctly) rendered.

Fixes 8117.
This commit is contained in:
Jonas Jenwald 2017-03-16 21:41:13 +01:00
parent 2b17188998
commit 098a56270d
3 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/806780/Test.pdf

View file

@ -1905,6 +1905,13 @@
"rounds": 1,
"type": "eq"
},
{ "id": "issue8117",
"file": "pdfs/issue8117.pdf",
"md5": "0c805ae480dd523148a16fe7ed0fc867",
"rounds": 1,
"link": true,
"type": "eq"
},
{ "id": "issue7855",
"file": "pdfs/issue7855.pdf",
"md5": "290d4d5da041ffbcb1ea5d3b0ed8ee91",