[
https://issues.apache.org/jira/browse/PDFBOX-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14311341#comment-14311341
]
ASF subversion and git services commented on PDFBOX-2676:
---------------------------------------------------------
Commit 1658179 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1658179 ]
PDFBOX-2676: throw IllegalArgumentException if startPage parameter is < 0
> 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: 1.8.9, 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]