Alan Keown schrieb:
> If you look at this thread:
> [...]
> you will find this answer:
> 
>       Stamper doesn't do layers - yet.

There is no need for me to use Stamper, at least as far as I understood it.

I did this:

   java com.lowagie.examples.objects.bookmarks.Layers

This creates a file "Layers.pdf"

and then:

   java com.lowagie.examples.general.copystamp.Concatenate Layers.pdf 
Layers.pdf Result.pdf

"Results.pdf" is without any layers.

I never want to create my own PDF file content. The task here is solely to 
use iText as one of the few good free tools to concatenate existing PDF files.

When looking into the source code of Concatenate.java I found that there is 
no loop which goes through existing layers and recreates them. I wonder 
whether it is possible to extend this somehow

for (int i = 0; i < n; ) {
     ++i;
     page = writer.getImportedPage(reader, i);
     writer.addPage(page);
}

so that either addPage() will consider layers automagically or there is a 
method to get a layer object from the page object, so something like

   writer.addPage(page).addLayer(layer)

would be possible.

Hopefully this is clearer now.


Regards,
Axel.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to