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: [email protected]
For additional commands, e-mail: [email protected]