tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allison, Timothy B." <talli...@mitre.org>
Subject using scratch files in PDFParser
Date Thu, 09 Jul 2015 17:16:44 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message