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 2025/09/06 11:54:00 UTC
[jira] [Resolved] (PDFBOX-6063) StringIndexOutOfBoundsException in PlainText$Paragraph.getLines()
[ https://issues.apache.org/jira/browse/PDFBOX-6063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-6063.
-------------------------------------
Resolution: Fixed
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org