PdfReader pdf = new PdfReader("abc.pdf");
PdfStamper stp = new PdfStamper(pdf, new FileOutputStream("abcout.pdf"));
PdfWriter writer = stp.getWriter();
PdfAction ac = PdfAction.gotoLocalPage(1, new PdfDestination(PdfDestination.XYZ, -1, -1, 0.1f), writer);
writer.setOpenAction(ac);
stp.close();
This will open in page 1 with a 10% zoom.
 
Paulo


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of abc xyz
Sent: Friday, April 28, 2006 7:21 AM
To: [email protected]
Subject: [iText-questions] Is there a way to set an initial zoom for the viewer to display PDF file

hi all
i have a pdf file "abc.pdf"
now i want to make changing in this existing file("abc.pdf"). i m using PdfStamper class to making changes in existing file. i have done all i need but i could not set the initial zoom for new changed file.
can any one help me to set the initial zoom of changed PDF file.
(can PdfStamper do this?)
regards,
Sim


Simaab


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Reply via email to