From 0692373bdebbfdcd9e9d2d018f5baba9800b6f2d Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Fri, 9 Oct 2020 15:36:54 -0400 Subject: [PATCH] Revert "Extract inline images from PDF" --- .../embeddedfileextractor/PDFAttachmentExtractor.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/PDFAttachmentExtractor.java b/Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/PDFAttachmentExtractor.java index 154d679596..a36b5c365d 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/PDFAttachmentExtractor.java +++ b/Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/PDFAttachmentExtractor.java @@ -34,7 +34,6 @@ import org.apache.tika.metadata.Metadata; import org.apache.tika.parser.AutoDetectParser; import org.apache.tika.parser.ParseContext; import org.apache.tika.parser.Parser; -import org.apache.tika.parser.pdf.PDFParserConfig; import org.apache.tika.sax.BodyContentHandler; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; @@ -77,17 +76,9 @@ final class PDFAttachmentExtractor { ExtractionPreconditions.checkArgument(Files.exists(outputDir), String.format("Output directory: %s, does not exist.", outputDir.toString())); //NON-NLS - - ParseContext parseContext = new ParseContext(); parseContext.set(Parser.class, parser); - PDFParserConfig pdfConfig = new PDFParserConfig(); - pdfConfig.setExtractInlineImages(true); - pdfConfig.setExtractUniqueInlineImagesOnly(true); - - parseContext.set(PDFParserConfig.class, pdfConfig); - //Keep track of the attachment files as they are being extracted and written to disk. NewResourceWatcher watcher = new NewResourceWatcher(); parseContext.set(EmbeddedDocumentExtractor.class, new EmbeddedAttachmentHandler(outputDir, parentID, watcher));