2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Fix image-streams.pdf in test suite

Some of the images were supposed to have no filter, but somewhere
along the line, they ended up with /FlateDecode, most likely because
qpdf rewrote the file without having --compress-streams=n specified.
If this error is repeated, it will cause a test failure.
This commit is contained in:
Jay Berkenbilt 2019-01-04 17:59:48 -05:00
parent 7b6ab900dc
commit 6f3b76b6c1
5 changed files with 45 additions and 81 deletions

View File

@ -1,17 +1,17 @@
page 1 page 1
filter: /FlateDecode, color space: /DeviceCMYK filter: null, color space: /DeviceCMYK
page 2 page 2
filter: /DCTDecode, color space: /DeviceCMYK filter: /DCTDecode, color space: /DeviceCMYK
page 3 page 3
filter: /RunLengthDecode, color space: /DeviceCMYK filter: /RunLengthDecode, color space: /DeviceCMYK
page 4 page 4
filter: /FlateDecode, color space: /DeviceRGB filter: null, color space: /DeviceRGB
page 5 page 5
filter: /DCTDecode, color space: /DeviceRGB filter: /DCTDecode, color space: /DeviceRGB
page 6 page 6
filter: /RunLengthDecode, color space: /DeviceRGB filter: /RunLengthDecode, color space: /DeviceRGB
page 7 page 7
filter: /FlateDecode, color space: /DeviceGray filter: null, color space: /DeviceGray
page 8 page 8
filter: /DCTDecode, color space: /DeviceGray filter: /DCTDecode, color space: /DeviceGray
page 9 page 9

Binary file not shown.

View File

@ -58,8 +58,7 @@
"/Type": "/Page" "/Type": "/Page"
}, },
"12 0 R": { "12 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"13 0 R": { "13 0 R": {
"/BaseFont": "/Helvetica", "/BaseFont": "/Helvetica",
@ -71,16 +70,14 @@
"14 0 R": { "14 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceCMYK", "/ColorSpace": "/DeviceCMYK",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 847, "/Length": 768000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"15 0 R": { "15 0 R": {
"/Filter": "/FlateDecode", "/Length": 101
"/Length": 102
}, },
"16 0 R": { "16 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -93,8 +90,7 @@
"/Width": 400 "/Width": 400
}, },
"17 0 R": { "17 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"18 0 R": { "18 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -107,8 +103,7 @@
"/Width": 400 "/Width": 400
}, },
"19 0 R": { "19 0 R": {
"/Filter": "/FlateDecode", "/Length": 94
"/Length": 96
}, },
"2 0 R": { "2 0 R": {
"/Count": 9, "/Count": 9,
@ -128,16 +123,14 @@
"20 0 R": { "20 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceRGB", "/ColorSpace": "/DeviceRGB",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 645, "/Length": 576000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"21 0 R": { "21 0 R": {
"/Filter": "/FlateDecode", "/Length": 100
"/Length": 99
}, },
"22 0 R": { "22 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -150,7 +143,6 @@
"/Width": 400 "/Width": 400
}, },
"23 0 R": { "23 0 R": {
"/Filter": "/FlateDecode",
"/Length": 106 "/Length": 106
}, },
"24 0 R": { "24 0 R": {
@ -164,21 +156,18 @@
"/Width": 400 "/Width": 400
}, },
"25 0 R": { "25 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"26 0 R": { "26 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceGray", "/ColorSpace": "/DeviceGray",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 221, "/Length": 192000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"27 0 R": { "27 0 R": {
"/Filter": "/FlateDecode",
"/Length": 101 "/Length": 101
}, },
"28 0 R": { "28 0 R": {
@ -192,8 +181,7 @@
"/Width": 400 "/Width": 400
}, },
"29 0 R": { "29 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"3 0 R": { "3 0 R": {
"/Contents": "12 0 R", "/Contents": "12 0 R",
@ -376,7 +364,7 @@
"trailer": { "trailer": {
"/ID": [ "/ID": [
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶", "S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶",
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶" "'+“‰¤V2«PP ç`m\"\u001d"
], ],
"/Root": "1 0 R", "/Root": "1 0 R",
"/Size": 31 "/Size": 31
@ -397,7 +385,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -475,7 +463,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -553,7 +541,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,

View File

@ -58,8 +58,7 @@
"/Type": "/Page" "/Type": "/Page"
}, },
"12 0 R": { "12 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"13 0 R": { "13 0 R": {
"/BaseFont": "/Helvetica", "/BaseFont": "/Helvetica",
@ -71,16 +70,14 @@
"14 0 R": { "14 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceCMYK", "/ColorSpace": "/DeviceCMYK",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 847, "/Length": 768000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"15 0 R": { "15 0 R": {
"/Filter": "/FlateDecode", "/Length": 101
"/Length": 102
}, },
"16 0 R": { "16 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -93,8 +90,7 @@
"/Width": 400 "/Width": 400
}, },
"17 0 R": { "17 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"18 0 R": { "18 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -107,8 +103,7 @@
"/Width": 400 "/Width": 400
}, },
"19 0 R": { "19 0 R": {
"/Filter": "/FlateDecode", "/Length": 94
"/Length": 96
}, },
"2 0 R": { "2 0 R": {
"/Count": 9, "/Count": 9,
@ -128,16 +123,14 @@
"20 0 R": { "20 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceRGB", "/ColorSpace": "/DeviceRGB",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 645, "/Length": 576000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"21 0 R": { "21 0 R": {
"/Filter": "/FlateDecode", "/Length": 100
"/Length": 99
}, },
"22 0 R": { "22 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -150,7 +143,6 @@
"/Width": 400 "/Width": 400
}, },
"23 0 R": { "23 0 R": {
"/Filter": "/FlateDecode",
"/Length": 106 "/Length": 106
}, },
"24 0 R": { "24 0 R": {
@ -164,21 +156,18 @@
"/Width": 400 "/Width": 400
}, },
"25 0 R": { "25 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"26 0 R": { "26 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceGray", "/ColorSpace": "/DeviceGray",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 221, "/Length": 192000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"27 0 R": { "27 0 R": {
"/Filter": "/FlateDecode",
"/Length": 101 "/Length": 101
}, },
"28 0 R": { "28 0 R": {
@ -192,8 +181,7 @@
"/Width": 400 "/Width": 400
}, },
"29 0 R": { "29 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"3 0 R": { "3 0 R": {
"/Contents": "12 0 R", "/Contents": "12 0 R",
@ -376,7 +364,7 @@
"trailer": { "trailer": {
"/ID": [ "/ID": [
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶", "S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶",
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶" "'+“‰¤V2«PP ç`m\"\u001d"
], ],
"/Root": "1 0 R", "/Root": "1 0 R",
"/Size": 31 "/Size": 31
@ -397,7 +385,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -475,7 +463,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -553,7 +541,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,

View File

@ -58,8 +58,7 @@
"/Type": "/Page" "/Type": "/Page"
}, },
"12 0 R": { "12 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"13 0 R": { "13 0 R": {
"/BaseFont": "/Helvetica", "/BaseFont": "/Helvetica",
@ -71,16 +70,14 @@
"14 0 R": { "14 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceCMYK", "/ColorSpace": "/DeviceCMYK",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 847, "/Length": 768000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"15 0 R": { "15 0 R": {
"/Filter": "/FlateDecode", "/Length": 101
"/Length": 102
}, },
"16 0 R": { "16 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -93,8 +90,7 @@
"/Width": 400 "/Width": 400
}, },
"17 0 R": { "17 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"18 0 R": { "18 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -107,8 +103,7 @@
"/Width": 400 "/Width": 400
}, },
"19 0 R": { "19 0 R": {
"/Filter": "/FlateDecode", "/Length": 94
"/Length": 96
}, },
"2 0 R": { "2 0 R": {
"/Count": 9, "/Count": 9,
@ -128,16 +123,14 @@
"20 0 R": { "20 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceRGB", "/ColorSpace": "/DeviceRGB",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 645, "/Length": 576000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"21 0 R": { "21 0 R": {
"/Filter": "/FlateDecode", "/Length": 100
"/Length": 99
}, },
"22 0 R": { "22 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
@ -150,7 +143,6 @@
"/Width": 400 "/Width": 400
}, },
"23 0 R": { "23 0 R": {
"/Filter": "/FlateDecode",
"/Length": 106 "/Length": 106
}, },
"24 0 R": { "24 0 R": {
@ -164,21 +156,18 @@
"/Width": 400 "/Width": 400
}, },
"25 0 R": { "25 0 R": {
"/Filter": "/FlateDecode", "/Length": 95
"/Length": 97
}, },
"26 0 R": { "26 0 R": {
"/BitsPerComponent": 8, "/BitsPerComponent": 8,
"/ColorSpace": "/DeviceGray", "/ColorSpace": "/DeviceGray",
"/Filter": "/FlateDecode",
"/Height": 480, "/Height": 480,
"/Length": 221, "/Length": 192000,
"/Subtype": "/Image", "/Subtype": "/Image",
"/Type": "/XObject", "/Type": "/XObject",
"/Width": 400 "/Width": 400
}, },
"27 0 R": { "27 0 R": {
"/Filter": "/FlateDecode",
"/Length": 101 "/Length": 101
}, },
"28 0 R": { "28 0 R": {
@ -192,8 +181,7 @@
"/Width": 400 "/Width": 400
}, },
"29 0 R": { "29 0 R": {
"/Filter": "/FlateDecode", "/Length": 107
"/Length": 108
}, },
"3 0 R": { "3 0 R": {
"/Contents": "12 0 R", "/Contents": "12 0 R",
@ -376,7 +364,7 @@
"trailer": { "trailer": {
"/ID": [ "/ID": [
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶", "S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶",
"S¶Ł”łîð\u000e¢¬\u0007}_)\u0012¶" "'+“‰¤V2«PP ç`m\"\u001d"
], ],
"/Root": "1 0 R", "/Root": "1 0 R",
"/Size": 31 "/Size": 31
@ -397,7 +385,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -475,7 +463,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,
@ -553,7 +541,7 @@
null null
], ],
"filter": [ "filter": [
"/FlateDecode" null
], ],
"filterable": true, "filterable": true,
"height": 480, "height": 480,