PdfContentByte cb = writer.getDirectContent();
PdfReader reader = new PdfReader("some_pdf.pdf");
PdfTemplate tp = writer.getImportedPage(reader, 1);
Image img = Image.getInstance(tp);
img.setAbsolutePosition(100, 100);
img.scalePercent(20);
img.setRotationDegrees(33);
cb.addImage(im2);


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 2:28 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Resize PdfImportedPage


Hi,

I'm trying to add a pdf document to my pdf document and I wanted to resize the original pages to write them into a delimited area of the 2nd document (my pdf document). I'm using setHeight and setWidth methods of PdfImportedPage (inherited from PdfContentByte) to resize the pages but I've not succeeded in doing this. I would like to resize each page, or it's contents, as I do with images and add them to my document.
It's possible to do it? How?

Thanks. Chema.


Reply via email to