You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2018/08/01 12:57:00 UTC

[jira] [Commented] (TIKA-2702) Different behavior between TIKA and pdfbox

    [ https://issues.apache.org/jira/browse/TIKA-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565254#comment-16565254 ] 

Tim Allison commented on TIKA-2702:
-----------------------------------

If you want to prevent extraction of hyperlinks, we could parameterize that in Tika to allow you to turn it off via tika-config.xml.

However, there will likely be many differences in how Tika extracts text from PDFs and how PDFBox's text extractor extracts text.  IIRC, PDFBox doesn't handle embedded files; it may not handle bookmarks, annotations, any number of things that I can't remember at the moment.

Can you help me understand why you need to have an exact 1:1 match?

> Different behavior between TIKA and pdfbox
> ------------------------------------------
>
>                 Key: TIKA-2702
>                 URL: https://issues.apache.org/jira/browse/TIKA-2702
>             Project: Tika
>          Issue Type: Bug
>          Components: app
>    Affects Versions: 1.18
>            Reporter: Lior
>            Priority: Major
>
> As far as I understand, TIKA is using pdfbox for extracting text from pdf files
> During a side benchmark I'm doing, I'm seeing that the text I'm getting using PDFBox 2.0.9 and the text I'm getting from TIKA is not 100% the same...in most cases, when there is a hyperlink inside the pdf file, the pdfbox ignore the link itself, while TIKA is extracting the text, for example:
> https://www.linkedin.com/in/jhonDo
> mailto:[jhondo@yahoo.com |mailto:jhondo@yahoo.com]
>  
> This is really a deal breaker for me, because I'm using pdfbox for another process I'm doing and I need the text to be the same, so I can't use TIKA at the moment....



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)