Skip to content

Commit

Permalink
TIKA-4219 -- clean up...do not include font names in main package
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Mar 26, 2024
1 parent 88b582f commit 2d585b8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d585b8

Please sign in to comment.