You have to compensate for the page mediabox that is uncommon in this case. This will work for any template:
PdfTemplate t = writer.getImportedPage(r, 1); Rectangle rect = r.getPageSize(1); cb.addTemplate(t, -rect.left(), -rect.bottom()); ----- Original Message ----- From: "Michael Helfer" <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net> Sent: Wednesday, February 02, 2005 7:31 PM Subject: [iText-questions] Unreadable Template > I have written a very simple application to read thought a directory > and add each of the pdf's as a template to a document. However, one of > the pdf's shows up as a blank page in the document. I have no idea > why. Any help would be greatly appriciated. I have attached the code > and the troublesome pdf. > > Thanks in advance > > Michael > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions