You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Amit Maheshwari (JIRA)" <ji...@apache.org> on 2018/09/27 03:51:00 UTC
[jira] [Comment Edited] (PDFBOX-4324) while extracting text from
region : "Error: expected hex character and not s:115"
[ https://issues.apache.org/jira/browse/PDFBOX-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16629706#comment-16629706 ]
Amit Maheshwari edited comment on PDFBOX-4324 at 9/27/18 3:50 AM:
------------------------------------------------------------------
hello
[~tilman]
Can you explain me if ToUnicode mapping stream is having incorrect syntax, why I am able to extract text from 1st page while I am having the problem in extracting text from second page only.
Yes, there is a Rupee symbol in second page (which is not on 1st page), but I am trying to extract text from those regions of second page which doesn't contain rupee symbol (in fact it is identical to 1st page)
was (Author: aa.amit.mahheshwari):
hello
[~tilman]
Can you explain me if ToUnicode mapping stream is having incorrect syntax, why I am able to extract text from 1st page while I am having the problem in extracting text from second page only.
Yes, there is a Rupee symbol in second page (which is not on 1st page), but I am trying to extract text from those regions of second page which doesn't contain rupee symbol (in fact it is identical to 1st page)
I don't see two separate ToUnicode mapping for each pages, so this ToUnicode stream must be common for both pages. If so how can I be able to extract text from regions of 1st page and not from the same region of 2nd page?
> while extracting text from region : "Error: expected hex character and not s:115"
> ---------------------------------------------------------------------------------
>
> Key: PDFBOX-4324
> URL: https://issues.apache.org/jira/browse/PDFBOX-4324
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 2.0.2
> Reporter: Amit Maheshwari
> Priority: Major
> Attachments: SRI NAGAR.PDF, ToUnicode.txt
>
>
> I am getting following error when I try to extract text of any specific region of 2nd page of attached pdf (while 1st page is working fine)
>
> Error Message:
> "Error: expected hex character and not s:115"
>
> Stack-trace:
> at org.apache.pdfbox.contentstream.PDFStreamEngine.operatorException(Operator operator, List operands, IOException e)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(Operator operator, List operands)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDContentStream )
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDContentStream )
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDPage page)
> at org.apache.pdfbox.text.PDFTextStreamEngine.processPage(PDPage )
> at org.apache.pdfbox.text.PDFTextStripper.processPage(PDPage page)
> at org.apache.pdfbox.text.PDFTextStripperByArea.extractRegions(PDPage page)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org