From c13a4c15573bd156067af3d1978c016fa7b29a87 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Tue, 24 Apr 2012 18:53:11 -0500 Subject: [PATCH] Replacing test with simulated bad pdf --- test/pdfs/.gitignore | 1 + test/pdfs/issue1586.pdf.link | 1 - test/pdfs/pdfjsbad1586.pdf | Bin 0 -> 7911 bytes test/test_manifest.json | 5 ++--- 4 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 test/pdfs/issue1586.pdf.link create mode 100644 test/pdfs/pdfjsbad1586.pdf diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index e4b9fb10c..95daa16e5 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -18,6 +18,7 @@ !cmykjpeg.pdf !issue840.pdf !scan-bad.pdf +!pdfjsbad1586.pdf !freeculture.pdf !pdfkit_compressed.pdf !TAMReview.pdf diff --git a/test/pdfs/issue1586.pdf.link b/test/pdfs/issue1586.pdf.link deleted file mode 100644 index f66f7f39f..000000000 --- a/test/pdfs/issue1586.pdf.link +++ /dev/null @@ -1 +0,0 @@ -http://cdn.flamehaus.com/Valve_Handbook_LowRes.pdf diff --git a/test/pdfs/pdfjsbad1586.pdf b/test/pdfs/pdfjsbad1586.pdf new file mode 100644 index 0000000000000000000000000000000000000000..71c0ed40b762ae23229de2f9752694d149f76277 GIT binary patch literal 7911 zcma)B1zeQP)&~(#KoC(v!lg^tgr${Ox>*pUTwn?5-K9gMQ$Pek5QCHuDG@=Gl5UX@ zkdlyY>2DWbukU@m-*>-#fPLmaGv}N+Gn_NO|KZkFP!s|SLn*i$zO8>-$k}+>-SCkD z1^@w^EpAgtNdbWBXeS$-EkFbh=>mX?b`Cf+2LJ7V!l4z=md;jafQ$?U7KcHj94S1B z5%<8qA@>iSF! zb0Ot(dg>)sr#0Mws={ZueN5%@vJx~|&&=K#@p#U%-rnIZe1Z9D#@Ya`(2phcMLX=w zveLaL1B}^qq7RmWHKf{|x6H94obnWCC#%0K!M_m}K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