pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: Multi-page overlay with OverlayPDF in PDFBox 1.8.2
Date Tue, 02 Sep 2014 20:01:45 GMT
Hi,

Am 02.09.2014 18:53, schrieb Laurent Yaish:
> Hi Andreas,
>
> Should I create an issue in Jira for this?
Yes, please, good idea.

> Thanks
>
> Laurent

BR
Andreas Lehmkühler

>
>
> On Sun, Aug 31, 2014 at 11:32 AM, Laurent Yaish <laurenty@gmail.com> wrote:
>
>> Hi Andreas,
>>
>> Yes that is correct. The pages of the overlay used to get repeated instead
>> of just using the first page.
>>
>> Thanks
>>
>> Laurent
>>
>>
>> On Sun, Aug 31, 2014 at 3:52 AM, Andreas Lehmkuehler <andreas@lehmi.de>
>> wrote:
>>
>>> Hi,
>>>
>>> Am 31.08.2014 02:45, schrieb Laurent Yaish:
>>>
>>>   So I looked at the code and it does look like there is no way to do this
>>>> with the new implementation.
>>>> Using the -even, -odd or -page options could work for a small document,
>>>> but
>>>> we wouldn't be able to overlay a 999 page PDF with a 3 page template.
>>>>
>>>> What if we added something like a -useAllOverlayPages parameter (it's a
>>>> bad
>>>> name, I know)  that would then populate specificPageOverlayPage with all
>>>> the pages available from the defaultOverlay and then just do something
>>>> like:
>>>>
>>>> int usePageNum = pageNumber % specificPageOverlayPage.size(); if
>>>> (useAllOverlayPages && specificPageOverlayPage.containsKey(usePageNum))
>>>> {
>>>> layoutPage = specificPageOverlayPage.get(usePageNum); }
>>>>
>>>> in the overlayPage() method.
>>>>
>>>> I'd try it, but don't code in Java and it probably would take me a while
>>>> just to get the thing to compile... :)
>>>>
>>> Just for clarification. In your given example you expect to overlay your
>>> 999 pages pdf with a 3 pages overlay pdf by repeating those 3 pages over
>>> and over again. Am I right?
>>>
>>>   Thoughts?
>>>>
>>> Obviously the old implementation provided that feature and the current
>>> one not. So, if it's needed we should reimplement it. Shouldn't be that
>>> hard ....
>>>
>>>   Thanks
>>>>
>>>> Laurent
>>>>
>>>
>>> BR
>>> Andreas Lehmkühler
>>>
>>>
>>>
>>>>
>>>> On Sat, Aug 30, 2014 at 2:37 PM, Laurent Yaish <laurenty@gmail.com>
>>>> wrote:
>>>>
>>>>   Hi,
>>>>>
>>>>> I'm trying to overlay a 12 page PDF with a 2 page "template".
>>>>> With the old Overlay implementation it would repeat the template 6
>>>>> times:
>>>>> page 1, page 2, page 1...
>>>>>
>>>>> I tried several of the options documented, but couldn't get it to work
>>>>> like it used to.
>>>>>
>>>>> Does the new implementation support this?
>>>>>
>>>>> I'm only using 1.8.2 because the code appears to be broken in the latest
>>>>> 1.8.6.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Laurent
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>


Mime
View raw message