diff --git a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java index a572ad2cca..b9f74cf3e8 100644 --- a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java +++ b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java @@ -452,9 +452,13 @@ private void handleEmbedded(ZipFile zipFile, String relativePath, HRefMediaPair xhtml.startElement("div", "class", "embedded"); try { + boolean outputHtml = true; + if (hRefMediaPair.media.contains("font") || hRefMediaPair.href.startsWith("fonts")) { + outputHtml = false; + } embeddedDocumentExtractor .parseEmbedded(stream, new EmbeddedContentHandler(xhtml), embeddedMetadata, - true); + outputHtml); } finally { IOUtils.closeQuietly(stream);