I'm actually still interested in a solution to this because my workaround is creating significant unnecessary overhead.
I'll try to explain the problem again: 1) I want to stamp a particular page (I'm going to call this the source page) of a document with a piece of text in the bottom right hand corner. Problem: The stamp could be placed over the page's existing content Solution: Determine the size of the stamp and resize and re-position the page's content so that all of the content and the stamp appear on the page 2) To implement 1)'s solution I need to create a new page and get a template of the source page so I can resize and reposition it on the new page. I then add stamp to this new page. 3) I want to replace the source page with this new page Problem: I can't use PdfStamper.ReplacePage using the one reader on one document. It doesn't like it Solution: use PdfStamper.SelectPages Problem: When I use PdfStamper.SelectPages, the new pages are correctly selected BUT there is no content on the page except for the stamp that I added Solution: Close the pdfreader and pdfstamper. Re-open the pdfreader and pdfstamper and use pdfstamper.selectpages. This works. I hope that was more clear. Basically, I add a new page and add content using a pdftemplate. I then add some normal text to that new page. When I remove the page I used as a template from the document, the content from the new page also disappears. If I close the document before I remove the template the page, it works. Cheers, Billy On Thu, Feb 19, 2009 at 10:59 PM, 1T3XT info <i...@1t3xt.info> wrote: > Billy Anachronism wrote: >> I'm currently using a work-around to pdfstamp the document, then >> re-open it and select the pages. This works but seems unnecessarily >> inefficient > > I didn't understand the problem (I still don't after reading the > original mail), but I'm happy to see that you've found a workaround. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > 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 > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ 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