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:44:00 UTC

[jira] [Created] (PDFBOX-6063) StringIndexOutOfBoundsException in PlainText$Paragraph.getLines()

Tilman Hausherr created PDFBOX-6063:
---------------------------------------

             Summary: 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: 3.0.5 PDFBox, 2.0.34
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.35, 3.0.6 PDFBox, 4.0.0


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