Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5043

StringIndexOutOfBoundsException in refreshAppearances()

    XMLWordPrintableJSON

    Details

      Description

      java.lang.StringIndexOutOfBoundsException: begin 0, end 481, length 1
          java.base/java.lang.String.checkBoundsBeginEnd(String.java:3756)
          java.base/java.lang.String.substring(String.java:1902)
          org.apache.pdfbox.pdmodel.interactive.form.PlainText$Paragraph.getLines(PlainText.java:209)
          org.apache.pdfbox.pdmodel.interactive.form.PlainTextFormatter.format(PlainTextFormatter.java:182)
          org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.insertGeneratedAppearance(AppearanceGeneratorHelper.java:585)
          org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceContent(AppearanceGeneratorHelper.java:420)
          org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:238)
          org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:262)
          org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.refreshAppearances(PDAcroForm.java:327)
      

      This happens with the field "barcode1" on page 6.

        Attachments

        1. PDFBOX-3891-5.pdf
          1.58 MB
          Tilman Hausherr

          Activity

            People

            • Assignee:
              msahyoun Maruan Sahyoun
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: