Doesn't this code already set the new page to be the same as the on in
the reader? 
// we retrieve the total number of pages
Rectangle psize = reader.getPageSize(1);
float width = psize.height();
float height = psize.width();
            
// step 1: creation of a document-object
Document document = new Document(new Rectangle(width, height));
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("Test.pdf"));


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Henry Doan
Sent: Wednesday, June 21, 2006 2:00 PM
To: [email protected]
Subject: Re: [iText-questions] Problem getting the correct size
whenaddingtemplate


reader.getPageSize(int pagenumber)


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to