nico/pdffiles

★ 1Forks 0GitHub ↗Compare

README

pdffiles

Various PDF files for testing PDF readers.

Files

000582.pdf

  • Contains images with /Filter /RunLengthDecode in a document in the wild

From https://github.com/pdf-raku/stillhq.com-pdfdb

0000008.pdf

  • Contains images with /Filter /CCITTFaxDecode in a document in the wild

From 0000.zip in https://downloads.digitalcorpora.org/corpora/files/CC-MAIN-2021-31-PDF-UNTRUNCATED/

2ThestructureoftheCIE1997ColourAppearanceModelCIECAM97s.pdf

  • Contains several /Filter [/ASCII85Decode /LZWDecode]
  • Contains CFF font using the built-in Standard encoding

From https://www.researchgate.net/publication/270511438_The_CIE_1997_Colour_Appearance_Model_CIECAM97s

7535-7pt.pdf

  • Contains images with /Filter /JBIG2Decode
  • Also with /Filter [ /FlateDecode /DCTDecode ] (!)

From https://www.dkriesel.com/_media/blog/2013/7535-7pt.pdf

Bakke2010a.pdf

Contains a float defaultWidthX in an embedded CFF font. The CFF glyphs contain opcodes 255 with negative values.

From http://english.hig.no/content/download/28956/331069/file/Bakke2010a.pdf.

balloon_a1b_jp2k.pdf

Fairly normal file (not encrypted, not linearized, no object streams, normal xref). Contains two /Filter [/JPXDecode] images.

From http://opf-labs.org/format-corpus/pdfCabinetOfHorrors/balloon_a1b_jp2k.pdf.

ccitt-g3.pdf

  • Contains an image with /Filter /CCITTFaxDecode

Generated by running

tools/tiff2pdf -o ccitt-g3.pdf ~/Downloads/libtiffpic/fax2d.tif

where tiff2pdf is one of the tools in libtiff (just ./configure && make), and libtiffpic is http://www.simplesystems.org/libtiff/images.html.

CIPA_DC-007-2021_E.pdf

  • PDF 1.7
  • Encrypted (V5, R6, AESV3 (!))
  • xref stream
  • obj streams
  • not linearized

From https://cipa.jp/std/documents/download_e.html?CIPA_DC-007-2021_E.

dummy.pdf

  • PDF 1.4
  • /Info object with UTF-16 strings
    • Producer: OpenOffice.org 2.1
  • /Outlines data
  • Embedded TTF font
  • Streams have /Length as indirect object reference stored after the stream
  • Fairly simple: Not linearized, no object streams, no xref stream, no incremental updates; regular xref, trailer, startxref, %%EOF.

From https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf.

encryption_nocopy.pdf

  • PDF 1.7
  • Encrypted (V4, R4, AESV2)
  • Linearized
  • XRef stream only (not hybrid)
  • Object streams
  • /Columns and Predictor 12 in /DecodeParams of a /FlateDecode stream

From http://opf-labs.org/format-corpus/pdfCabinetOfHorrors/encryption_nocopy.pdf.

pdf-test.pdf

  • PDF 1.6
  • Linearized
  • Encrypted (V2, R3, Length 128)
  • Object streams
  • Contains a bunch of bitmaps, partially in object streams
  • Hybrid-reference file with xref, but first trailer also has a /XRefStm key pointing at a /XRef stream

Fairly complete edge-case workout (encrypted, linearized, obj stream, xref stream, hybrid)!

From https://www.orimi.com/pdf-test.pdf.

Problemset.pdf

  • Contains type1 font programs without a Subrs array

From my hard disk, I made this file long ago (using TeX).

veraPDFHiRes.pdf

  • Linearized
  • Contains a /Filter/DCTDecode image

From http://opf-labs.org/format-corpus/pdfCabinetOfHorrors/veraPDFHiRes.pdf.

Contributors

nico

Issues