You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Allison, Timothy B." <ta...@mitre.org> on 2015/07/09 19:16:44 UTC

using scratch files in PDFParser

In working on the PDFParser, I was looking at these lines:

if (tstream != null && tstream.hasFile()) {
    // File based, take that as a cue to use a temporary file
    pdfDocument = PDDocument.load(new CloseShieldInputStream(stream), password, true);//, true);
} else {

...If there's already a file available via the TikaInputStream, why don't we pass the file to PDDocument.load() instead of the TikaInputStream?

Best,

           Tim