You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/02/08 09:19:00 UTC

[jira] [Closed] (PDFBOX-4768) Unable to extract text from PDF

     [ https://issues.apache.org/jira/browse/PDFBOX-4768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-4768.
-----------------------------------
      Assignee: Tilman Hausherr
    Resolution: Not A Bug

Closing as this is not a bug. You can still comment and/or reopen.

> Unable to extract text from PDF
> -------------------------------
>
>                 Key: PDFBOX-4768
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4768
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.18
>            Reporter: Jan Vlug
>            Assignee: Tilman Hausherr
>            Priority: Major
>         Attachments: kst-31430-3-b3_unextractable.pdf
>
>
> I have a PDF document (see attachment) that can be viewed in Evince, but tika text extraction does not work. I think that this is due to a crash in pdfbox.
> I'm also a bit puzzled by the message: "You do not have permission to extract text".
> Here the output of the ExtractText command:
> {{java -jar pdfbox-app-2.0.19-20200206.060243-86.jar ExtractText kst-31430-3-b3_unextractable.pdf tekst_jan.txt}}
> {{Feb 07, 2020 11:03:15 AM org.apache.pdfbox.pdfparser.COSParser validateStreamLength}}
> {{WARNING: The end of the stream doesn't point to the correct offset, using workaround to read the stream, stream start position: 211564, length: 3336, expected end position: 214900}}
> {{Feb 07, 2020 11:03:15 AM org.apache.pdfbox.pdfparser.COSParser parseCOSStream}}
> {{WARNING: stream ends with 'endobj' instead of 'endstream' at offset 225134}}
> {{Exception in thread "main" java.io.IOException: You do not have permission to extract text}}
> {{ at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:223)}}
> {{ at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:97)}}
> {{ at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:60)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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