Problem getting the correct size whenaddingtemplate
- From: "Grizzly Malchow" <grizzlym (at) northernwholesale.com>
- Date: Wed, 21 Jun 2006 14:11:50 -0500
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: itext-questions-bounces (at) lists.sourceforge.net
[mailto:itext-questions-bounces (at) lists.sourceforge.net] On Behalf Of
Henry Doan
Sent: Wednesday, June 21, 2006 2:00 PM
To: itext-questions (at) lists.sourceforge.net
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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions