Gents, I use PdfWriter to import pages as such:
PdfImportedPage page = writer.GetImportedPage(reader, pageNumber); writer.DirectContent.AddTemplate(page, ... ); This wraps the page in an XObject Form that is then referenced by the Page being generated in the output. What I would like to do is to add a /Name entry to the XObject Form dictionary to indicate to a PostScript conversion engine that the Form should cached as opposed to being replicated each time it's being referenced by a page. I was hoping to do something like: PdfStream stream = page.GetFormXObject(-1); stream.Put(new PdfName("Name"), new PdfName("CacheThisForm")); but the protection level does not allow that, and even if it did, I would get a private copy with the Name added but no changes in the actual output. It's easy adding dictionary entries on the PdfReader side and have them being preserved, but it escapes me how to do this on a template being added. Any ideas on how this can be accomplished? Thanks - Gylfi ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/