On 28/02/2012 0:29, John B wrote: > I have two PDFs, let's call them A and B. A has two pages and B has > one page. I want to place the contents of B onto page 1 of A in the > same location as it was on B. How should I go about doing this?
Create a PdfReader for both files. Create a PdfStamper with the reader for file A. Create a PdfImportedPage with the stamper and the reader for file B. Add the PdfImportedPage to the direct content of the first page of the stamper. Unless I don't understand the question, this is pretty straightforward stuff documented in chapter 6 of "iText in Action - Second Edition." Incidentally, this chapter is offered as a sample chapter for free: http://affiliate.manning.com/idevaffiliate.php?id=223_212 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php