You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/20 16:09:34 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14141992#comment-14141992 ] 

ASF subversion and git services commented on PDFBOX-2371:
---------------------------------------------------------

Commit 1626445 from [~lehmi] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1626445 ]

PDFBOX-2371: fixed allPagesOverlay as proposed by Laurent Yaish

> 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)