The only way to do it is to use PdfStamper for the OCG pdf and import and add the other pages recreating the links. This also means that you must read the links to be able to reproduce them.

Paulo

----- Original Message ----- From: "Eliot Cline" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 13, 2006 10:36 AM
Subject: [iText-questions] PdfCopy and Layers


Hello,

I have just started using iText (.NET version). I am having a problem that hopefully someone can help me with. We are using iText to extract spatial data from PostgreSQL database and render detailed maps in pdf. So far eveything has worked very well but I am totally stumped now. The maps are rendered in layers (OCG) and an index of city names is appended to the end of the document. There is some other content in a single, multi-page pdf file that gets appended to the pdf file containing the map. The content in this file has many hyperlinks to websites and internal links to other pages.

If I use PdfCopy the resulting merged file contains all hyperlinks and anchors, but the OCGs are gone. Tried to use PdfStamper to add the additional pdf file to the map doc. The OGCs are intact in this case but all the hyperlinking is removed from the appended content. Is there some way to keep both links and OGCs in my final merged document? If this question doesn't have an obvious answere, I would be happy to post my code.

Thanks,

Eliot Cline
Go Spatial Limited


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to