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

PDPageLabelRange.setLabelItem() should not allow negative startPage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.8, 1.8.9, 2.0.0
    • 1.8.9, 2.0.0
    • PDModel
    • None

    Description

      This code

              PDPageLabels pl = new PDPageLabels(doc);
              PDPageLabelRange plr0 = new PDPageLabelRange();
              plr0.setPrefix("bad");
              pl.setLabelItem(-1, plr0);
      

      should throw an exception, because the startPage parameter should not be negative.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: