Try something like this:
PdfReader reader = new PdfReader(ifilename);
PdfWriter writer = PdfWriter.getInstance(
document, new FileOutputStream(ofilename));
PdfImportedPage p = writer.getImportedPage(
reader, i);
Rectangle r = reader.getPageSize(i);
document.setPageSize(new Rectangle(
r.width() * 2, r.height() * 2));
document.newPage();
PdfContentByte cb = writer.getDirectContent();
cb.addTemplate(p, 2, 0, 0, 2, 0, 0);
Youssef Eldakar
Bibliotheca Alexandrina
Shatby, Alexandria 21526
Tel: +20-3-4839999
Fax: +20-3-4879422
E-mail: [EMAIL PROTECTED]
-----Original Message-----
From: kalpesh raval [mailto:[EMAIL PROTECTED]
Sent: Mon 6/28/2004 11:45 PM
To: [EMAIL PROTECTED]
Cc:
Subject: [iText-questions] Please Help
Hello,
I need to open a pdf file, scale it to 200% and then save it.
How do i go about doing this???
Any help is greatly appreciated.
Kalpesh
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions