[
https://issues.apache.org/jira/browse/PDFBOX-6063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018568#comment-18018568
]
ASF subversion and git services commented on PDFBOX-6063:
---------------------------------------------------------
Commit 1928263 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1928263 ]
PDFBOX-6063: don't process empty widths
> StringIndexOutOfBoundsException in PlainText$Paragraph.getLines()
> -----------------------------------------------------------------
>
> Key: PDFBOX-6063
> URL: https://issues.apache.org/jira/browse/PDFBOX-6063
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.34, 3.0.5 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.35, 3.0.6 PDFBox, 4.0.0
>
> Attachments: PDFBOX-6063-0072554-EmptyAnnotation.pdf
>
>
> StringIndexOutOfBoundsException: begin 0, end -1, length 6
> java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
> java.base/java.lang.String.substring(String.java:1874)
>
> org.apache.pdfbox.pdmodel.interactive.PlainText$Paragraph.getLines(PlainText.java:206)
>
> org.apache.pdfbox.pdmodel.interactive.PlainTextFormatter.format(PlainTextFormatter.java:153)
> This is because width is negative, because the rectangle is empty.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]