Tilman Hausherr created PDFBOX-2676:
---------------------------------------

             Summary: PDPageLabelRange.setLabelItem() should not allow negative 
startPage
                 Key: PDFBOX-2676
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2676
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.8.8, 1.8.9, 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.0


This code
{code}
        PDPageLabels pl = new PDPageLabels(doc);
        PDPageLabelRange plr0 = new PDPageLabelRange();
        plr0.setPrefix("bad");
        pl.setLabelItem(-1, plr0);
{code}
should throw an exception, because the startPage parameter should not be 
negative.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to