Thanks Bruno :)

Regards,
Julie

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bruno Lowagie (iText)
Sent: Wednesday, September 27, 2006 5:58 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] ExceptionConverter: java.io.IOException:
The document has no pages.

Tan Hui Siang - Julie (DHL MY) wrote:
> Hi,
> 
> I am trying to generate pdf file from my Servlet and am getting the
> following error. Please help as I have tried changing the code
multiple
> times but with no success :(

I have put your code in a standalone example.
See attachments.
You made some odd choices: the outer table has two columns,
but all the columns have colspan 2. Why not make a table
with one column?
Also you have 2 only 2 rows AND you set the headerrows count
to 2. This doesn't make sense. If you remove this line,
the PDF gets generated without any problem.
Use Occam's razor to remove everything that is not necessary
in the java example in attachment. If you have further questions,
use the attached file as reference.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to