Ah, that's make sense. So, what is the idiomatic way to copy the annotations along with the content stream?
On Thu, May 21, 2009 at 1:38 AM, 1T3XT info <[email protected]> wrote: > Colin Freas wrote: > > > > I've created an apparently valid document using a ByteArrayOutputStream. > > > > The entire contents of this document are anchors with some text and > links. > > > > When I use PdfStamper to insert this document into an existing pdf file, > > the anchors cease to function as anchors: only the anchor text seems to > > transfer, not the URL and not their anchor-ish nature. > > This was to be expected. > > You are using PdfImportedPage. > PdfImportedPage acts like a photocopier: > all interactive are lost in the process. > > Why? > > A page consists of: > (1) a content stream > (2) annotations > > (1) is a stream of PDF syntax as described in the Adobe Imaging model: > using operators such as: l, m, BT, ET,... > (2) are described using the Carousel Object System. > for instance: a link is a PDF dictionary in the PDF array > with key value /ANNOTS. > > When you use PdfImportedPage, you only "photocopy" (1), not (2). > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ > You can also search the keywords list: > http://1t3xt.info/tutorials/keywords/ >
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
