2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-29 00:10:54 +00:00

Sanitize test suite

Remove problematic test files
This commit is contained in:
Jay Berkenbilt 2017-08-11 07:06:52 -04:00
parent 5814082cdc
commit 0c99cf874b
88 changed files with 395 additions and 2173 deletions

View File

@ -543,9 +543,9 @@ $td->runtest("check file",
{$td->FILE => "a.pdf"},
{$td->FILE => "gen1.qdf"});
# This file, from a user, is missing /ID in its trailer even though it
# is encrypted and also has a space instead of a newline after its
# xref keyword. xpdf can open it, but Adobe reader can't.
# A user provided a file that was missing /ID in its trailer even
# though it is encrypted and also has a space instead of a newline
# after its xref keyword. This file has those same properties.
$td->runtest("check broken file",
{$td->COMMAND => "qpdf --check invalid-id-xref.pdf"},
{$td->FILE => "invalid-id-xref.out", $td->EXIT_STATUS => 3},
@ -995,7 +995,7 @@ $td->runtest("C API: no recovery",
show_ntests();
# ----------
$td->notify("--- Recovery Tests ---");
$n_tests += @badfiles + 8;
$n_tests += @badfiles + 6;
# Recovery tests. These are mostly after-the-fact -- when recovery
# was implemented, some degree of recovery was possible on many of the
@ -1021,18 +1021,6 @@ for (my $i = 1; $i <= scalar(@badfiles); ++$i)
$td->NORMALIZE_NEWLINES);
}
# This heifer file was a real file that contained errors that Acrobat
# Reader can recover. We can recover it too.
$td->runtest("recover heifer file",
{$td->COMMAND => "qpdf --static-id --no-original-object-ids" .
" -qdf heifer.pdf a.pdf"},
{$td->FILE => "heifer.out",
$td->EXIT_STATUS => 3},
$td->NORMALIZE_NEWLINES);
$td->runtest("check output",
{$td->FILE => "a.pdf"},
{$td->FILE => "heifer.qdf"});
# See if we can recover the cross reference table on a file that has
# been appended to even when it deletes and reuses objects. We can't
# completely do it in the case of deleted objects, but we can get
@ -1094,6 +1082,7 @@ my @goodfiles = ("implicit null", # 1
"hybrid xref old mode", # 18
"xref with prev", # 19
"lots of compressible objects", # 20
"pound in name", # 21
);
$n_tests += (3 * @goodfiles) + 6;
@ -1275,31 +1264,10 @@ for (my $n = 16; $n <= 19; ++$n)
show_ntests();
# ----------
$td->notify("--- Specific File Tests ---");
$n_tests += 5;
$n_compare_pdfs += 1;
$n_tests += 2;
# Special PDF files that caused problems at some point
# This file is a PDF 1.1 file with /# as a name and with
# inconsistencies in its free table. It also has LZW streams that
# happen to test boundary conditions in the LZW decoder.
$td->runtest("old and complex",
{$td->COMMAND => "qpdf --check old-and-complex.pdf"},
{$td->FILE => "old-and-complex-check.out",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("old and complex (C API)",
{$td->COMMAND => "qpdf-ctest 1 old-and-complex.pdf '' ''"},
{$td->FILE => "old-and-complex-c-check.out",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("convert to qdf",
{$td->COMMAND => "qpdf --qdf old-and-complex.pdf a.qdf"},
{$td->STRING => "", $td->EXIT_STATUS => 0});
compare_pdfs("old-and-complex.pdf", "a.qdf");
$td->runtest("damaged stream",
{$td->COMMAND => "qpdf --check damaged-stream.pdf"},
{$td->FILE => "damaged-stream.out", $td->EXIT_STATUS => 3},
@ -1529,8 +1497,8 @@ $td->runtest("check linearized and modified",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("check multiple modifications",
{$td->COMMAND => "qpdf --check multiple-mods.pdf"},
{$td->FILE => "multiple-mods-check.out",
{$td->COMMAND => "qpdf --check delete-and-reuse.pdf"},
{$td->FILE => "delete-and-reuse-check.out",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
@ -1666,16 +1634,16 @@ my @encrypted_files =
$n_tests += 5 + (2 * (@encrypted_files)) + (6 * (@encrypted_files - 6)) + 9;
$td->runtest("encrypted file",
{$td->COMMAND => "test_driver 2 U25A0.pdf"},
{$td->COMMAND => "test_driver 2 encrypted-with-images.pdf"},
{$td->FILE => "encrypted1.out",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("preserve encryption",
{$td->COMMAND => "qpdf U25A0.pdf U25A0.enc"},
{$td->COMMAND => "qpdf encrypted-with-images.pdf encrypted-with-images.enc"},
{$td->STRING => "",
$td->EXIT_STATUS => 0});
$td->runtest("recheck encrypted file",
{$td->COMMAND => "test_driver 2 U25A0.enc"},
{$td->COMMAND => "test_driver 2 encrypted-with-images.enc"},
{$td->FILE => "encrypted1.out",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
@ -1882,13 +1850,13 @@ foreach my $d (@cenc)
# linearized and/or encrypted as desired.
$td->runtest("linearize encrypted file",
{$td->COMMAND => "qpdf --linearize U25A0.pdf a.pdf"},
{$td->COMMAND => "qpdf --linearize encrypted-with-images.pdf a.pdf"},
{$td->STRING => "",
$td->EXIT_STATUS => 0});
$td->runtest("check encryption",
{$td->COMMAND => "qpdf --show-encryption a.pdf",
$td->FILTER => "grep -v allowed"},
{$td->STRING => "R = 2\nP = -60\nUser password = \n",
{$td->STRING => "R = 3\nP = -4\nUser password = \n",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("check linearization",
@ -2128,7 +2096,7 @@ show_ntests();
$td->notify("--- Content Preservation Tests ---");
# $n_tests incremented below
my @files = ("U25A0.pdf", # encrypted
my @files = ("encrypted-with-images.pdf", # encrypted
"inline-images.pdf",
"lin-special.pdf",
"object-stream.pdf",
@ -2213,13 +2181,12 @@ foreach my $file (@files)
}
}
# inline-images-cr.pdf is xbkm938-dies.pdf from PDF collection
$td->runtest("convert inline-images-cr to qdf",
$td->runtest("convert inline-images to qdf",
{$td->COMMAND => "qpdf --static-id --no-original-object-ids" .
" --qdf inline-images-cr.pdf a.pdf"},
" --qdf inline-images.pdf a.pdf"},
{$td->STRING => "", $td->EXIT_STATUS => 0});
compare_pdfs("inline-images-cr.pdf", "a.pdf");
compare_pdfs("inline-images.pdf", "a.pdf");
show_ntests();
# ----------

View File

@ -1,13 +0,0 @@
version: 1.5
linearized: 0
encrypted: 1
user password:
extract for accessibility: 0
extract for any purpose: 0
print low resolution: 1
print high resolution: 1
modify document assembly: 0
modify forms: 0
modify annotations: 0
modify other: 0
modify anything: 0

View File

@ -1,17 +0,0 @@
checking a.pdf
PDF Version: 1.5
R = 2
P = -60
User password =
extract for accessibility: not allowed
extract for any purpose: not allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: not allowed
modify forms: not allowed
modify annotations: not allowed
modify other: not allowed
modify anything: not allowed
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,13 +0,0 @@
version: 1.3
linearized: 0
encrypted: 1
user password:
extract for accessibility: 0
extract for any purpose: 0
print low resolution: 1
print high resolution: 1
modify document assembly: 0
modify forms: 0
modify annotations: 0
modify other: 0
modify anything: 0

View File

@ -1,17 +0,0 @@
checking a.pdf
PDF Version: 1.3
R = 2
P = -60
User password =
extract for accessibility: not allowed
extract for any purpose: not allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: not allowed
modify forms: not allowed
modify annotations: not allowed
modify other: not allowed
modify anything: not allowed
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,3 +0,0 @@
version: 1.3
linearized: 0
encrypted: 0

View File

@ -1,6 +0,0 @@
checking a.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,3 +0,0 @@
version: 1.3
linearized: 0
encrypted: 0

View File

@ -1,6 +0,0 @@
checking a.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,3 +0,0 @@
version: 1.3
linearized: 0
encrypted: 0

View File

@ -1,6 +0,0 @@
checking a.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,3 +0,0 @@
version: 1.3
linearized: 0
encrypted: 0

View File

@ -1,6 +0,0 @@
checking a.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,13 +0,0 @@
version: 1.5
linearized: 1
encrypted: 1
user password:
extract for accessibility: 0
extract for any purpose: 0
print low resolution: 1
print high resolution: 1
modify document assembly: 0
modify forms: 0
modify annotations: 0
modify other: 0
modify anything: 0

View File

@ -1,17 +0,0 @@
checking a.pdf
PDF Version: 1.5
R = 2
P = -60
User password =
extract for accessibility: not allowed
extract for any purpose: not allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: not allowed
modify forms: not allowed
modify annotations: not allowed
modify other: not allowed
modify anything: not allowed
File is linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,13 +0,0 @@
version: 1.3
linearized: 1
encrypted: 1
user password:
extract for accessibility: 0
extract for any purpose: 0
print low resolution: 1
print high resolution: 1
modify document assembly: 0
modify forms: 0
modify annotations: 0
modify other: 0
modify anything: 0

View File

@ -1,17 +0,0 @@
checking a.pdf
PDF Version: 1.3
R = 2
P = -60
User password =
extract for accessibility: not allowed
extract for any purpose: not allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: not allowed
modify forms: not allowed
modify annotations: not allowed
modify other: not allowed
modify anything: not allowed
File is linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

Binary file not shown.

View File

@ -0,0 +1,6 @@
checking delete-and-reuse.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,4 +1,4 @@
version: 1.4
version: 1.5
linearized: 0
encrypted: 1
user password:

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.4
PDF Version: 1.5
R = 3
P = -4
User password =

View File

@ -1,4 +1,4 @@
version: 1.4
version: 1.5
linearized: 1
encrypted: 1
user password:

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.4
PDF Version: 1.5
R = 3
P = -4
User password =

View File

@ -0,0 +1,13 @@
version: 1.5
linearized: 0
encrypted: 1
user password:
extract for accessibility: 1
extract for any purpose: 1
print low resolution: 1
print high resolution: 1
modify document assembly: 1
modify forms: 1
modify annotations: 1
modify other: 1
modify anything: 1

View File

@ -0,0 +1,17 @@
checking a.pdf
PDF Version: 1.5
R = 3
P = -4
User password =
extract for accessibility: allowed
extract for any purpose: allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: allowed
modify forms: allowed
modify annotations: allowed
modify other: allowed
modify anything: allowed
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,13 @@
version: 1.5
linearized: 0
encrypted: 1
user password:
extract for accessibility: 1
extract for any purpose: 1
print low resolution: 1
print high resolution: 1
modify document assembly: 1
modify forms: 1
modify annotations: 1
modify other: 1
modify anything: 1

View File

@ -0,0 +1,17 @@
checking a.pdf
PDF Version: 1.5
R = 3
P = -4
User password =
extract for accessibility: allowed
extract for any purpose: allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: allowed
modify forms: allowed
modify annotations: allowed
modify other: allowed
modify anything: allowed
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,3 +1,3 @@
version: 1.3
version: 1.5
linearized: 0
encrypted: 0

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.3
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain

View File

@ -1,3 +1,3 @@
version: 1.3
version: 1.5
linearized: 0
encrypted: 0

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.3
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain

View File

@ -1,3 +1,3 @@
version: 1.3
version: 1.5
linearized: 0
encrypted: 0

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.3
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain

View File

@ -1,3 +1,3 @@
version: 1.3
version: 1.5
linearized: 0
encrypted: 0

View File

@ -1,5 +1,5 @@
checking a.pdf
PDF Version: 1.3
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain

View File

@ -0,0 +1,3 @@
version: 1.5
linearized: 0
encrypted: 0

View File

@ -0,0 +1,6 @@
checking a.pdf
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,3 @@
version: 1.5
linearized: 0
encrypted: 0

View File

@ -0,0 +1,6 @@
checking a.pdf
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,3 @@
version: 1.5
linearized: 0
encrypted: 0

View File

@ -0,0 +1,6 @@
checking a.pdf
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,3 @@
version: 1.5
linearized: 0
encrypted: 0

View File

@ -0,0 +1,6 @@
checking a.pdf
PDF Version: 1.5
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,13 @@
version: 1.5
linearized: 1
encrypted: 1
user password:
extract for accessibility: 1
extract for any purpose: 1
print low resolution: 1
print high resolution: 1
modify document assembly: 1
modify forms: 1
modify annotations: 1
modify other: 1
modify anything: 1

View File

@ -0,0 +1,17 @@
checking a.pdf
PDF Version: 1.5
R = 3
P = -4
User password =
extract for accessibility: allowed
extract for any purpose: allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: allowed
modify forms: allowed
modify annotations: allowed
modify other: allowed
modify anything: allowed
File is linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -0,0 +1,13 @@
version: 1.5
linearized: 1
encrypted: 1
user password:
extract for accessibility: 1
extract for any purpose: 1
print low resolution: 1
print high resolution: 1
modify document assembly: 1
modify forms: 1
modify annotations: 1
modify other: 1
modify anything: 1

View File

@ -0,0 +1,17 @@
checking a.pdf
PDF Version: 1.5
R = 3
P = -4
User password =
extract for accessibility: allowed
extract for any purpose: allowed
print low resolution: allowed
print high resolution: allowed
modify document assembly: allowed
modify forms: allowed
modify annotations: allowed
modify other: allowed
modify anything: allowed
File is linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

View File

@ -1,578 +1,9 @@
D:20000914005716
Acrobat Distiller 4.05 for Windows
<68735ba82e3c37b5b8228510ba7e3ff6a57adff9901483de2357988c0a42aa48>
<f32ad8fda2ac3a46178937370a6f76071920499dad850a95f177b9089b6e20ca>
1 g
/GS1 gs
1 i
178.226 60.781 344.491 -11.279 re
f
BT
/F4 1 Tf
9.999 0 0 9.999 178.2259 51.9016 Tm
0 g
0.003 Tc
0 Tw
[(T)7(h)-1(e)-249(U)5(ni)5(code)-249(St)5(andar)8(d)-253(3)-1(.0,)-251(C)10(opyr)8(i)5(ght)-247(©)-221(1991-2000,)-251(U)5(n)-1(i)5(c)3(ode,)-251(I)0(nc.)-251(A)2(l)5(l)-247(r)8(i)5(ght)5(s)-244(r)8(es)8(er)8(ved)]TJ
ET
1 g
72.035 60.781 15.119 -11.279 re
f
BT
9.999 0 0 9.999 72.0347 51.9016 Tm
0 g
0.004 Tc
(542)Tj
ET
1 g
490.8 769.802 31.197 -15.959 re
f
BT
/F5 1 Tf
13.9985 0 0 13.9985 490.7998 756.9629 Tm
0 g
0.0057 Tc
[(25F)8.1(F)]TJ
ET
1 g
242.541 769.802 108.831 -15.959 re
f
BT
13.9985 0 0 13.9985 242.5405 756.9629 Tm
0 g
0.0027 Tc
[(Geom)12.8(etric)-247.6(Shapes)]TJ
ET
1 g
72.035 769.802 31.317 -15.959 re
f
BT
13.9985 0 0 13.9985 72.0347 756.9629 Tm
0 g
0.0057 Tc
[(25A)7.7(0)]TJ
ET
0 G
2 J 1 j 1.49 w 10 M []0 d
202.104 727.685 m
202.104 79.259 l
391.928 727.685 m
391.928 79.259 l
202.104 712.807 m
391.928 712.807 l
202.104 79.259 m
391.928 79.259 l
S
BT
/F6 1 Tf
9.999 0 0 9.999 209.0633 719.286 Tm
-0.004 Tc
[(25A)-1389(25B)-1377(25C)-1346(25D)-1370(25E)-1413(25F)]TJ
ET
1 g
360.371 396.033 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 396.033 31.557 -39.597 re
f
1 g
360.371 356.436 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 356.436 31.557 -39.597 re
f
1 g
360.371 316.84 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 316.84 31.557 -39.597 re
f
1 g
360.371 277.243 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 277.243 31.557 -39.597 re
f
1 g
360.371 237.646 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 237.646 31.557 -39.597 re
f
1 g
360.371 198.049 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 198.049 31.557 -39.597 re
f
1 g
360.371 158.453 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 158.453 31.557 -39.597 re
f
1 g
360.371 118.856 31.557 -39.597 re
f
/Cs9 cs 0 /P1 scn
360.371 118.856 31.557 -39.597 re
f
0.248 w
202.104 712.807 m
202.104 79.259 l
233.781 712.807 m
233.781 79.259 l
265.339 712.807 m
265.339 79.259 l
297.016 712.807 m
297.016 79.259 l
328.693 712.807 m
328.693 79.259 l
360.371 712.807 m
360.371 79.259 l
391.928 712.807 m
391.928 79.259 l
202.104 712.807 m
391.928 712.807 l
202.104 673.21 m
391.928 673.21 l
202.104 633.613 m
391.928 633.613 l
202.104 594.016 m
391.928 594.016 l
202.104 554.42 m
391.928 554.42 l
202.104 514.823 m
391.928 514.823 l
202.104 475.226 m
391.928 475.226 l
202.104 435.63 m
391.928 435.63 l
202.104 396.033 m
391.928 396.033 l
202.104 356.436 m
391.928 356.436 l
202.104 316.84 m
391.928 316.84 l
202.104 277.243 m
391.928 277.243 l
202.104 237.646 m
391.928 237.646 l
202.104 198.049 m
391.928 198.049 l
202.104 158.453 m
391.928 158.453 l
202.104 118.856 m
391.928 118.856 l
202.104 79.259 m
391.928 79.259 l
S
BT
/F7 1 Tf
21.998 0 0 21.998 209.6633 687.6086 Tm
0 g
0 Tc
()Tj
0 -1.8 TD
()Tj
T*
()Tj
T*
()Tj
T*
()Tj
T*
()Tj
T*
()Tj
T*
()Tj
T*
( )Tj
T*
(\012)Tj
/F9 1 Tf
0.2673 -1.8 TD
()Tj
T*
()Tj
/F7 1 Tf
-0.3436 -1.8 TD
( )Tj
T*
( )Tj
0.2018 -1.8 TD
(\015)Tj
T*
()Tj
1.2491 27.0002 TD
()Tj
0 -1.8 TD
()Tj
0.06 -1.8 TD
()Tj
T*
()Tj
0.2127 -1.8 TD
()Tj
T*
()Tj
-0.1636 -1.8 TD
()Tj
T*
()Tj
0.1855 -1.8 TD
()Tj
T*
()Tj
-0.1418 -1.8 TD
()Tj
T*
()Tj
-0.0927 -1.8 TD
()Tj
T*
()Tj
0.2127 -1.8 TD
()Tj
T*
()Tj
1.2764 27.0002 TD
()Tj
0 -1.8 TD
( )Tj
0.1855 -1.8 TD
(!)Tj
T*
(")Tj
-0.1418 -1.8 TD
(#)Tj
T*
($)Tj
-0.0927 -1.8 TD
(%)Tj
T*
(&)Tj
T*
(')Tj
T*
(\()Tj
0.0927 -1.8 TD
(\))Tj
-0.0927 -1.8 TD
(*)Tj
T*
(+)Tj
T*
(,)Tj
T*
(-)Tj
T*
(.)Tj
1.44 27.0002 TD
(/)Tj
0 -1.8 TD
(0)Tj
T*
(1)Tj
T*
(2)Tj
T*
(3)Tj
T*
(4)Tj
T*
(5)Tj
T*
(6)Tj
0.2018 -1.8 TD
(7)Tj
-0.2018 -1.8 TD
(8)Tj
T*
(9)Tj
T*
(:)Tj
T*
(;)Tj
T*
(<)Tj
T*
(=)Tj
T*
(>)Tj
1.44 27.0002 TD
(?)Tj
0 -1.8 TD
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601 TD
(A)Tj
T*
(B)Tj
-0.024 -3.9601 TD
(C)Tj
T*
(D)Tj
0.024 -3.9601 TD
(E)Tj
0.024 -3.9601 TD
(F)Tj
ET
1.49 w
202.104 727.685 m
202.104 79.259 l
391.928 727.685 m
391.928 79.259 l
202.104 712.807 m
391.928 712.807 l
202.104 79.259 m
391.928 79.259 l
S
D:20080424174457
Apex PDFWriter
<36451bd39d753b7c1d10922c28e6665aa4f3353fb0348b536893e3b1db5c579b>
<c5fcd68fff42090ae5db77f3c6d7992e0122456a91bae5134273a6db134c87c4>
q
185 0 0 200 213.5 296 cm
/Im2 Do
Q
test 2 done

View File

@ -0,0 +1,5 @@
/QTest is direct and has type name (7)
/QTest is a name with value /#
unparse: /#23
unparseResolved: /#23
test 1 done

View File

@ -0,0 +1,81 @@
%PDF-1.1
1 0 obj
<<
/Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<<
/Type /Pages
/Kids [
3 0 R
]
/Count 1
>>
endobj
3 0 obj
<<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
/Contents 4 0 R
/Resources <<
/ProcSet 5 0 R
/Font <<
/F1 6 0 R
>>
>>
>>
endobj
4 0 obj
<<
/Length 44
>>
stream
BT
/F1 24 Tf
72 720 Td
(Potato) Tj
ET
endstream
endobj
5 0 obj
[
/PDF
/Text
]
endobj
6 0 obj
<<
/Type /Font
/Subtype /Type1
/Name /F1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
>>
endobj
xref
0 7
0000000000 65535 f
0000000009 00000 n
0000000063 00000 n
0000000135 00000 n
0000000307 00000 n
0000000403 00000 n
0000000438 00000 n
trailer <<
/Size 7
/Root 1 0 R
/QTest /#
>>
startxref
556
%%EOF

102
qpdf/qtest/qpdf/good21.qdf Normal file
View File

@ -0,0 +1,102 @@
%PDF-1.1
%¿÷¢þ
%QDF-1.0
%% Original object ID: 1 0
1 0 obj
<<
/Pages 2 0 R
/Type /Catalog
>>
endobj
%% Original object ID: 2 0
2 0 obj
<<
/Count 1
/Kids [
3 0 R
]
/Type /Pages
>>
endobj
%% Page 1
%% Original object ID: 3 0
3 0 obj
<<
/Contents 4 0 R
/MediaBox [
0
0
612
792
]
/Parent 2 0 R
/Resources <<
/Font <<
/F1 6 0 R
>>
/ProcSet 7 0 R
>>
/Type /Page
>>
endobj
%% Contents for page 1
%% Original object ID: 4 0
4 0 obj
<<
/Length 5 0 R
>>
stream
BT
/F1 24 Tf
72 720 Td
(Potato) Tj
ET
endstream
endobj
5 0 obj
44
endobj
%% Original object ID: 6 0
6 0 obj
<<
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
/Name /F1
/Subtype /Type1
/Type /Font
>>
endobj
%% Original object ID: 5 0
7 0 obj
[
/PDF
/Text
]
endobj
xref
0 8
0000000000 65535 f
0000000052 00000 n
0000000133 00000 n
0000000242 00000 n
0000000484 00000 n
0000000583 00000 n
0000000629 00000 n
0000000774 00000 n
trailer <<
/QTest /#23
/Root 1 0 R
/Size 8
/ID [<31415926535897932384626433832795><31415926535897932384626433832795>]
>>
startxref
809
%%EOF

View File

@ -1,7 +0,0 @@
WARNING: heifer.pdf: file is damaged
WARNING: heifer.pdf (file position 92741): xref not found
WARNING: heifer.pdf: Attempting to reconstruct cross-reference table
WARNING: heifer.pdf (object 2 0, file position 2165): expected endstream
WARNING: heifer.pdf (object 2 0, file position 51): attempting to recover stream length
WARNING: heifer.pdf (object 2 0, file position 51): recovered stream length: 2249
qpdf: operation succeeded with warnings; resulting file may have some problems

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,6 +1,6 @@
WARNING: invalid-id-xref.pdf (trailer, file position 2493795): invalid /ID in trailer dictionary
WARNING: invalid-id-xref.pdf (trailer, file position 731): invalid /ID in trailer dictionary
checking invalid-id-xref.pdf
PDF Version: 1.1
PDF Version: 1.4
R = 3
P = -1804
User password =

Binary file not shown.

View File

@ -1,4 +1,5 @@
WARNING: issue-106.pdf (file position 56627): error decoding stream data for object 29 0: stream inflate: inflate: data: incorrect data check
WARNING: issue-106.pdf (file position 64303): error decoding stream data for object 30 0: stream inflate: inflate: data: incorrect data check
WARNING: issue-106.pdf (file position 67427): error decoding stream data for object 31 0: stream inflate: inflate: data: incorrect data check
WARNING: issue-106.pdf: file is damaged
WARNING: issue-106.pdf (file position 809): xref not found
WARNING: issue-106.pdf: Attempting to reconstruct cross-reference table
WARNING: issue-106.pdf (file position 965): error decoding stream data for object 8 0: stream inflate: inflate: data: incorrect data check
qpdf: operation succeeded with warnings; resulting file may have some problems

Binary file not shown.

View File

@ -1,6 +0,0 @@
checking multiple-mods.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

Binary file not shown.

View File

@ -1,3 +0,0 @@
version: 1.1
linearized: 0
encrypted: 0

View File

@ -1,6 +0,0 @@
checking old-and-complex.pdf
PDF Version: 1.1
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect

Binary file not shown.

View File

@ -1,5 +1,5 @@
checking split-content-stream.pdf
PDF Version: 1.4
PDF Version: 1.3
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain

View File

@ -2,4 +2,4 @@ checking zero-offset.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
WARNING: zero-offset.pdf (object 27 0): object has offset 0
WARNING: zero-offset.pdf (object 6 0): object has offset 0

Binary file not shown.