You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Chris A. Mattmann (Updated) (JIRA)" <ji...@apache.org> on 2012/03/07 16:26:57 UTC
[jira] [Updated] (TIKA-861) Parse links in PDF
[ https://issues.apache.org/jira/browse/TIKA-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris A. Mattmann updated TIKA-861:
-----------------------------------
Fix Version/s: (was: 1.1)
1.2
- push out to 1.2
> Parse links in PDF
> ------------------
>
> Key: TIKA-861
> URL: https://issues.apache.org/jira/browse/TIKA-861
> Project: Tika
> Issue Type: New Feature
> Components: parser
> Affects Versions: 1.0
> Reporter: Sasha Goodman
> Priority: Minor
> Labels: links, pdfbox
> Fix For: 1.2
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Currently the XHTML doesn't contain links, although PDFBox parses them. I'm new to Tika and haven't done java for 6 years, but someone more experienced could probably do this in a few hours.
> The PDF2XHTML method loops through the annotations.
> See:
> {code:java}
> 136: for(Object o : page.getAnnotations()) {
> {code}
> I found some code for dealing with links in annotations:
> http://stackoverflow.com/questions/7174709/pdfbox-not-recognizing-a-link
> It involves checking the class.
> {code:java}
> if( annotation instanceof PDAnnotationLink ) {
> PDAnnotationLink link = (PDAnnotationLink)annotation;
> {code}
> I hope this helps someone.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira