keep the list copied! :) Now, as to your last Exception, it just looks the like xml jar wasn't on the classpath. I would double-check. I ran your Class1 code with the following test.html:
<P><STRONG>Related course structure</STRONG><BR>The quick brown fox jumps over<BR>The quick pink fish jumps over the dolphin's nose</P> and got an error about the BR tag; since the HtmlParser is using an XML parser behind the scenes, your HTML apparently needs to be X(well-formed)HTML. When I changed to: <P><STRONG>Related course structure</STRONG><BR/>The quick brown fox jumps over<BR/>The quick pink fish jumps over the dolphin's nose</P> I still got a bad PDF. I added <html> and <body> tags around the content and got a good PDF. So apparently the SAXmyHtmlHandler doesn't like HTML document fragments. -Matt --- "Dunstall, Christopher" <[EMAIL PROTECTED]> wrote: > Ok, I've got right back to basics and started a > brand new project with > nothing in my classpath, the latest version of itext > and itext-xml > > I have all libraries set, and I run the example > program from the > tutorial... > > D:\jdev9031\jdk\bin\javaw.exe -ojvm -classpath D:\My > Projects\casims\iText\classes;D:\casims\lib;D:\jdev9031\jdev\lib\jdev-rt > .jar;D:\casims\lib\itext-1.01.jar;D:\casims\lib\sax.jar;D:\casims\lib\it > ext-xml-1.01.jar mypackage4.Class1 > Chapter 7 example 7: parsing the HTML from example 2 > > java.lang.NoClassDefFoundError: > com.lowagie.text.html.HtmlParser > void mypackage4.Class1.main(java.lang.String[]) > Class1.java:49 Exception in thread main > Process exited with exit code 1. > > Mate, this has got me stumped... I don't exactly > want to write my own > HTML to pdf converter :P I've attached the class > source, as you will see > it's exactly the same as the tutorial... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Chris Dunstall > Analyst Programmer > > Admin Computing > Bathurst Campus > Charles Sturt University > > E-Mail: [EMAIL PROTECTED] > Phone: +61 2 63384818 > Fax: +61 2 63384181 > Mobile: +61 0438 324 180 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > -----Original Message----- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 13 January 2004 10:01 AM > To: Dunstall, Christopher > Cc: itext-questions > Subject: RE: FW: [iText-questions] HTML to PDF > Question... > > > I would be suspicious of your CLASSPATH and anything > else strange in your environment, including the > little > man in the hat behind you... just kidding about that > last part. > > -Matt > > --- "Dunstall, Christopher" <[EMAIL PROTECTED]> > wrote: > > I'm not even using an Oracle XML parser... > > > > That's what I don't get, I don't know how it's > > getting there. > > > > I even tried the example off the iText website and > > it also tries to use > > the oracle xml parser... > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Chris Dunstall > > Analyst Programmer > > > > Admin Computing > > Bathurst Campus > > Charles Sturt University > > > > E-Mail: [EMAIL PROTECTED] > > Phone: +61 2 63384818 > > Fax: +61 2 63384181 > > Mobile: +61 0438 324 180 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > -----Original Message----- > > From: Matt Benson [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 13 January 2004 9:31 AM > > To: Dunstall, Christopher > > Cc: itext-questions > > Subject: RE: FW: [iText-questions] HTML to PDF > > Question... > > > > > > The problem appears to be something in that Oracle > > XML > > parser you're using. You might try using a > > different > > one just for verification, then take it up with > > Oracle? > > > > -Matt > > > > P.S. keep the list copied on stuff so everyone > > benefits from any discussions... > > > > --- "Dunstall, Christopher" <[EMAIL PROTECTED]> > > wrote: > > > Yup, that's all I was trying to do... > > > > > > My code retrieves a field of HTML from a > > database... > > > In production, it > > > literally could be thousands of characters, but > > for > > > the test purposes > > > while I am writing it it's just this small piece > > of > > > HTML... > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > Chris Dunstall > > > Analyst Programmer > > > > > > Admin Computing > > > Bathurst Campus > > > Charles Sturt University > > > > > > E-Mail: [EMAIL PROTECTED] > > > Phone: +61 2 63384818 > > > Fax: +61 2 63384181 > > > Mobile: +61 0438 324 180 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > > > > -----Original Message----- > > > From: Matt Benson [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, 13 January 2004 9:25 AM > > > To: Dunstall, Christopher > > > Cc: itext-questions > > > Subject: RE: FW: [iText-questions] HTML to PDF > > > Question... > > > > > > > > > That's it? I figured that was just a > fragment... > > > > > > -Matt > > > > > > > > > --- "Dunstall, Christopher" > <[EMAIL PROTECTED]> > > > wrote: > > > > It's in the error message, sorry if it wasn't > > > > obvious... > > > > > > > > <P><STRONG>Related course > > > structure</STRONG><BR>The > > > > quick brown fox > > > > jumps over<BR>The quick pink fish jumps over > the dolphin's > > > > nose</P> > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Chris Dunstall > > > > Analyst Programmer > > > > > > > > Admin Computing > > > > Bathurst Campus > > > > Charles Sturt University > > > > > > > > E-Mail: [EMAIL PROTECTED] > > > > Phone: +61 2 63384818 > > > > Fax: +61 2 63384181 > > > > Mobile: +61 0438 324 180 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > > > > > > > -----Original Message----- > > > > From: Matt Benson > [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, 13 January 2004 9:22 AM > > > > To: Dunstall, Christopher; > > [EMAIL PROTECTED] > > > > Subject: Re: FW: [iText-questions] HTML to PDF > Question... > > > > > > > > > > > > It might help if you gave us at least an > > > > approximation > > > > of the full block of HTML that was being > parsed. > > > > > > > > -Matt > > > > > > > > --- "Dunstall, Christopher" > > <[EMAIL PROTECTED]> > > > > wrote: > > > > > Anyone? :) Pretty Please? ;) > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > === message truncated === > ATTACHMENT part 2 application/octet-stream name=Class1.java __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions