John, John Hancock wrote > I am creating a batch of one-page pdfs from a larger pdf using > com.lowagie.text.pdf.PdfWriter.getImportedPage(PdfReader, int) The one > page pdf's that come from getImportedPage are shifted down and to the > right so that part of the original page is lost. Is there a way I can > prevent this?
A) If you want to create a new PDF with pages from some other PDFs as they are, using a plain PdfWriter and its getImportedPage is not appropriate. Instead select the pages in a PdfReader and apply a Stamper or use a Pdf*Copy* variant. B) Even using a plain PdfWriter and its getImportedPage you only get such a shift if you do something wrong. As you don't show a short sample to reproduce the issue, though, it is hard to tell what exactly you do wrong. C) Furthermore the com.lowagie style itext versions are ancient. Consider a time jump into this decade. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/pdf-shifted-down-tp4660379p4660384.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ 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