You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/02/08 15:47:34 UTC
[jira] [Updated] (PDFBOX-2676) PDPageLabelRange.setLabelItem()
should not allow negative startPage
[ https://issues.apache.org/jira/browse/PDFBOX-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-2676:
------------------------------------
Fix Version/s: 1.8.9
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org