Repository navigation
Add rich file type support: Office, HTML, EPUB, RTF, EML, ZIP - #1
Merged
Merged
Conversation
New extractors in TextExtractor (13 new formats, all pure Java): - DOCX/DOC — Apache POI (XWPFWordExtractor, HSLFSlideShow) - PPTX/PPT — Apache POI (XMLSlideShow, HSLFSlideShow slide iteration) - XLSX/XLS — Apache POI (XSSFWorkbook/HSSFWorkbook + DataFormatter) - ODT/ODP/ODS — ODF XML ZIP extraction (content.xml tag stripping) - HTML/HTM — Jsoup (script/style stripped, body text only) - EPUB — Jsoup (ZIP+XHTML spine extraction) - RTF — JDK RTFEditorKit (zero new deps) - EML — Jakarta Mail (headers + multipart body, HTML parts via Jsoup) - ZIP — JDK ZipInputStream (recursive text entry extraction, 50MB/500 entry limit) Dependencies added: poi-ooxml 5.3.0, poi-scratchpad 5.3.0, odfdom-java 0.12.0, jsoup 1.18.1, angus-mail 2.0.3 Extension defaults updated in MCP server, CLI client, and interactive CLI. README: added Supported File Types table. Tests: 7 new TextExtractorTest methods (PPTX/DOCX/XLSX/HTML/RTF/ZIP/isSupportedExtension) All 65 tests passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
mvn test)TextExtractorTestmethods covering PPTX, DOCX, XLSX, HTML, RTF, ZIP, andisSupportedExtensionHSLFSlideShow(InputStream), slide iteration replacing removedPowerPointExtractor.htmlrouting fixed: removed fromTEXT_EXTENSIONSso Jsoup path (script-stripping) takes precedence🤖 Generated with Claude Code