Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Problem getting the correct size
 whenaddingtemplate

Grizzly Malchow

2006-06-21


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@(protected)
[mailto:itext-questions-bounces@(protected)
Henry Doan
Sent: Wednesday, June 21, 2006 2:00 PM
To: itext-questions@(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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.