Making Sense of PDF Structures in the Wild at Scale
Timothy Allison Chris Mattman Wayne Burke Michael Fedell Dustin Graf Anastasia Menshikova Michael Milano Philip Southam Ryan Stonebraker
<p>PDFs in the wild offer a bewildering amount of variation in syntax, features and structure.&nbsp; For those building parsers or evaluating parsers, it is critical to have a broad coverage corpus available to assess and discover distributions of issues &quot;in the wild&quot; or on specific client document sets.&nbsp; In this talk, our team will present our work building a File Observatory to support Defense Advanced Research Projects Agency (DARPA)&#39;s SafeDocs program, which has an initial primary focus on PDF and related formats (e.g. jpeg, ICC, fonts, XMP).&nbsp; The talk will focus on a) gathering interesting PDFs and b) making features searchable and patterns easily discoverable with open source search technologies.&nbsp; In the first part, we&#39;ll discuss gathering millions of PDFs from Common Crawl and thousands of files from open source PDF parser bug tracker sites. In the second we&#39;ll outline the capabilities of the File Observatory to run multiple parsers against the files, extract features (runtime exceptions and error messages as well as structural features, including PDF DOM keys and values and other semantic components within the PDFs&#39; structures) and make those features searchable with Elasticsearch.&nbsp; We will also briefly demonstrate how the observatory enables the discovery of spelling variations (e.g. /Subtype vs. /SubType), and structural features which are statistically correlated with specific creator tools.</p>
content extraction Portable Document Format file processing