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

PDPageLabelRange.setLabelItem() should not allow negative startPage

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 1.8.9, 2.0.0
    • Fix Version/s: 1.8.9, 2.0.0
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: