1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #13598 from calixteman/dhl

XFA - Remove empty pages
This commit is contained in:
calixteman 2021-06-30 20:43:07 +02:00 committed by GitHub
commit d80651e572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 329 additions and 113 deletions

View file

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9228387

View file

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9228727

View file

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9228728

View file

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9228507

View file

@ -0,0 +1 @@
https://web.archive.org/web/20210621073147/https://www.dhl.com/content/dam/downloads/g0/express/emailship_page/globalpage/dhl_emailship_pdfclient_my_en.pdf

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/6695365/2229E.pdf

View file

@ -954,6 +954,38 @@
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug1717805",
"file": "pdfs/xfa_bug1717805.pdf",
"md5": "c68ccebd0d92b8fd70c465660458507f",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug17176688_1",
"file": "pdfs/xfa_bug1717668_1.pdf",
"md5": "564ecff67be690b43c2a144ae5967034",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug17176688_2",
"file": "pdfs/xfa_bug1717668_2.pdf",
"md5": "08aa8bf9fec5aa7b8ff13d9ba72ca8ac",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug17176688_3",
"file": "pdfs/xfa_bug1717668_3.pdf",
"md5": "4ff2531dbefebabc3f128d4ae20552a4",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug1718037",
"file": "pdfs/xfa_bug1718037.pdf",
"md5": "a0b53d50e9faed9d57950a5159d5da12",
@ -994,6 +1026,14 @@
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_dhl_shipment",
"file": "pdfs/xfa_dhl_shipment.pdf",
"md5": "503ece429d69e7d626d6932a475fbe63",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_bug1716047",
"file": "pdfs/xfa_bug1716047.pdf",
"md5": "2f524163bd8397f43d195090978c3b56",
@ -1074,6 +1114,14 @@
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_issue13611",
"file": "pdfs/xfa_issue13611.pdf",
"md5": "e713fb46a6b4637660010f1850559ff6",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_issue13634",
"file": "pdfs/xfa_issue13634.pdf",
"md5": "459a04045470811cbab6671772929d3d",

View file

@ -56,14 +56,18 @@ describe("XFAFactory", function () {
</draw>
</pageArea>
</pageSet>
<subform name="first">
</subform>
<subform name="second">
<breakBefore targetType="pageArea" startNew="1"/>
<subform>
<draw w="1pt" h="1pt"><value><text>foo</text></value></draw>
</subform>
</subform>
<subform name="third">
<breakBefore targetType="pageArea" startNew="1"/>
<subform>
<draw w="1pt" h="1pt"><value><text>bar</text></value></draw>
</subform>
</subform>
</subform>
</template>
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
@ -92,7 +96,6 @@ describe("XFAFactory", function () {
width: "456px",
left: "123px",
top: "0px",
position: "absolute",
});
const wrapper = page1.children[0];