You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/09/20 12:03:33 UTC
[jira] [Assigned] (PDFBOX-2371) Overlay page off by one when using
-useAllPages
[ https://issues.apache.org/jira/browse/PDFBOX-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler reassigned PDFBOX-2371:
------------------------------------------
Assignee: Andreas Lehmkühler
> Overlay page off by one when using -useAllPages
> -----------------------------------------------
>
> Key: PDFBOX-2371
> URL: https://issues.apache.org/jira/browse/PDFBOX-2371
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.7
> Reporter: Laurent Yaish
> Assignee: Andreas Lehmkühler
> Labels: overlay
> Attachments: Overlay.java.patch
>
>
> When using the new -useAllPages option added in 1.8.7, the usePageNum doesn't account for the fact that the specificOverlayPage is indexed by zero and the output ends up with overlay pages shifted
> e.g. The output page 1 has page 2 from the overlay.
> We need to subtract 1 from the pageNumber when getting the overlay page number.
> int usePageNum = (pageNumber - 1) % numberOfOverlayPages;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)