mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Fix the way to select page on breaking
- it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1716838. - some fonts in the pdf in the bug where bold when they shouldn't so write the font properties in the html to avoid to use some wrong inherited ones.
This commit is contained in:
parent
223b60f4e8
commit
7aea8faa34
5 changed files with 106 additions and 50 deletions
1
test/pdfs/xfa_bug1716838.pdf.link
Normal file
1
test/pdfs/xfa_bug1716838.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://bugzilla.mozilla.org/attachment.cgi?id=9227473
|
|
@ -962,6 +962,14 @@
|
|||
"enableXfa": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "xfa_bug1716838",
|
||||
"file": "pdfs/xfa_bug1716838.pdf",
|
||||
"md5": "564ecff67be690b43c2a144ae5967034",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"enableXfa": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "xfa_candidate_petitions",
|
||||
"file": "pdfs/xfa_candidate_petitions.pdf",
|
||||
"md5": "0db96a00667f8f58f94cf81022e69341",
|
||||
|
|
|
@ -118,6 +118,10 @@ describe("XFAFactory", function () {
|
|||
expect(draw.attributes.style).toEqual({
|
||||
color: "#0c1722",
|
||||
fontFamily: '"FooBar"',
|
||||
fontKerning: "none",
|
||||
letterSpacing: "0px",
|
||||
fontStyle: "normal",
|
||||
fontWeight: "normal",
|
||||
fontSize: "6.93px",
|
||||
margin: "1px 4px 2px 3px",
|
||||
verticalAlign: "2px",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue