Thanks for the info. I guess OCGs can not be created with PdfStamper? I can call all the methods but no layers get created. So I assume that layers can only go into a new doc using PdfWriter? If I could create the layered content with PdfStamper, my problem would be solved.

Regarding reading/reproducing the links from the pdf to be concated to my layered map doc, can someone point the way to how to do that? Not being an iText or pdf expert, I am having some trouble figuring out where to look.

Thanks,

Eliot Cline

----- Original Message ----- From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Eliot Cline" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Friday, April 14, 2006 3:51 AM
Subject: Re: [iText-questions] PdfCopy and Layers


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