You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/10/11 11:15:00 UTC

[PR] XSSFBEventBasedExcelExtractor: make setHandleHyperlinksInCells work [poi]

pjfanning opened a new pull request, #1372:
URL: https://github.com/apache/poi/pull/1372

   `XSSFBEventBasedExcelExtractor.setHandleHyperlinksInCells(true)` has had no effect since XLSB support was added. `getText()` built each sheet's `XSSFBHyperlinksTable` but never used it (SpotBugs: dead store to `hyperlinksTable`).
   
   With the option on, the text of a cell covered by a hyperlink now gets ` <target>` appended. That is the same form `XWPFWordExtractor.setFetchHyperlinks` uses for linked text. The target is the url for external links, and the location (e.g. `Sheet2!A1`) for links within the workbook. For example, `hyperlink.xlsb` gives:
   
   ```
   http://tika.apache.org <http://tika.apache.org/>
   ```
   
   The option defaults to `false`, so the output only changes for callers that already set it. The setter now has javadoc describing the format. The change is limited to the extractor: a private handler wraps the sheet's text handler only when the option is on and the sheet has hyperlinks.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: [PR] XSSFBEventBasedExcelExtractor: make setHandleHyperlinksInCells work [poi]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #1372:
URL: https://github.com/apache/poi/pull/1372


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org