Nauruhn, Ralph wrote:
> Hello everyone,
>
>
>
> I created a pdf with links in it. The links have been created using
> something like this:
>
>
>
> paragraph.add(new Chunk(partWithRef,
> refFont).setLocalGoto(ref));
>
>
>
> The corresponding destinations have been created using something like
> this:
>
>
>
> PdfDestination pdfDestination = new
> PdfDestination(PdfDestination.XYZ, x, pageHeight - y, 0);
>
> cb.localDestination(destination, pdfDestination);
>
>
>
> This works fine for this pdf.
>
>
>
> Now in a second step this pdf file (including all pages) is being
> copied to another one:
>
>
>
> PdfImportedPage newPage = writer.getImportedPage(reader,
> pdfPageNr);
>
> // a .. f will be set here
>
> cb.addTemplate(newPage, a, b, c, d, e, f);
>
>
>
> The resulting pdf has all the content off the first pdf except the
> links. They don“t work anymore? Do I have to come them separately?
>
As told in the introduction of this chapter:
http://itextdocs.lowagie.com/tutorial/general/copystamp/#intro
all interactive features are lost when working with PdfImportedPage.
Does PdfStamper meet your needs?
br,
Bruno
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions