Re: [iText-questions] The document has no pages error...

2008-04-22 Thread 1T3XT info
charlie_one wrote: > hi, i was having the same issue. after a while I found a way around that at > least worked for me. Your workaround works, but it's not good because of the following reasons (see inline comment): > I was having this scenario > > Document document = new Document(); > > Header

Re: [iText-questions] The document has no pages error...

2008-04-22 Thread charlie_one
hi, i was having the same issue. after a while I found a way around that at least worked for me. I was having this scenario Document document = new Document(); HeaderFooter header = new HeaderFooter( new Phrase( "test phrase" ), false ); PdfWriter.GetInstance( document, new FileStream( "c:\\te

Re: [iText-questions] The document has no pages error...

2008-04-20 Thread 1T3XT info
- - wrote: > Yes, the fonts are listed in there. OK, then my assumption was wrong. I just mentioned this before it happened to me before. > Thanks for the input 1T3XT. I've been trying to find what the default > font the PdfWriter uses and I must be missing it. Helvetica is used by default. >

Re: [iText-questions] The document has no pages error...

2008-04-20 Thread - -
>> I've been searching on this for hours now and I'm really stuck here... > > I'll answer from my experience (I've had a similar problem once). > I don't know if you are in the same situation. > >> And have been able to compile the java servlet, however when executing >> it I'm getting the "This

Re: [iText-questions] The document has no pages error...

2008-04-20 Thread 1T3XT info
> I've been searching on this for hours now and I'm really stuck here... I'll answer from my experience (I've had a similar problem once). I don't know if you are in the same situation. > And have been able to compile the java servlet, however when executing > it I'm getting the "This document h

[iText-questions] The document has no pages error...

2008-04-19 Thread - -
I've been searching on this for hours now and I'm really stuck here... I've been using iTextSharp for a while now and am trying to convert my code to run on the web via Java servlets. I've been following this tutorial (specifically the HelloWorldServlet): http://itextdocs.lowagie.com/tutorial/g