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/15 20:23:34 UTC

[jira] [Resolved] (PDFBOX-2314) Restore backward compatibility between Overlay and OverlayPDF

     [ https://issues.apache.org/jira/browse/PDFBOX-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-2314.
----------------------------------------
    Resolution: Fixed
      Assignee: Andreas Lehmkühler

I've readded the missing feature in trunk and 1.8 branch

Thanks for the contribution!

> Restore backward compatibility between Overlay and OverlayPDF
> -------------------------------------------------------------
>
>                 Key: PDFBOX-2314
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2314
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.8.6
>            Reporter: Laurent Yaish
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.7, 2.0.0
>
>
> There is a major difference with the way the overlay pages are handled between the Overlay tool from PDFBox 1.6.x and the latest OverlayPDF in 1.8.6.
> In the original version, when using a multi-page PDF overlay, all pages from the overlay would be combined with the original document. The latest version only uses the first page of the overlay.
> Example with a 6 page document and a 2 page (A, B) overlay:
> Expected behavior:
> A, B, A, B, A, B
> Current behavior:
> A, A, A, A, A, A
> Here's the reference to the documentation of the original behavior taken from http://svn.apache.org/viewvc/pdfbox/tags/1.6.0/pdfbox/src/main/java/org/apache/pdfbox/Overlay.java?view=markup
> {code}
> /**
> * Overlay on document with another one.<br>
> * e.g. Overlay an invoice with your company layout<br>
> * <br>
> * How it (should) work:<br>
> * If the document has 10 pages, and the layout 2 the following is the result:<br>
> * <pre>
> * Document: 1234567890
> * Layout  : 1212121212
> * </pre>
> * <br>
> *
> * @author Mario Ivankovits (mario@ops.co.at)
> * @author <a href="ben@benlitchfield.com">Ben Litchfield</a>
> *
> * @version $Revision: 1.7 $
> */
> public class Overlay
> {
> ...
> {code}



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