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
