Hi, I'm using iTextSharp to convert an XML document to a PDF file, but it keeps breaking.
Here's a snippet of the XML I'm using that is breaking. <?xml version="1.0"?> <!DOCTYPE ITEXT SYSTEM "http://www.ujihara.jp/iTextdotNET/itext.dtd"> <itext> <table width="100.0%" cellpadding="2.0"> <row> <cell bgred="255" bggreen="102" bgblue="0" horizontalalign="Center" borderwidth="1.0" left="true" right="true" top="true" bottom="true" leading="10"> <paragraph size="13" font="Arial" style="bold">Some Text</paragraph> </cell> </row> </table> </itext> Here is the StackTrace of the exception I get. It's breaking when trying to close the element ROW. at iTextSharp.text.xml.ITextHandler.HandleEndingTags(String name) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\ITextHandler.cs:line 693 at iTextSharp.text.xml.ITextmyHandler.EndElement(String uri, String lname, String name) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\ITextmyHandler.cs:line 112 at iTextSharp.text.xml.ParserBase.Parse(XmlTextReader reader) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\ParserBase.cs:line 42 at iTextSharp.text.xml.ParserBase.Parse(String url) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\ParserBase.cs:line 71 at iTextSharp.text.xml.XmlParser.Go(IDocListener document, String file, Hashtable tagmap) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\XmlParser.cs:line 145 at iTextSharp.text.xml.XmlParser.Parse(IDocListener document, String file, Hashtable tagmap) in C:\TestProjects\iTextSharp\iTextSharp\text\xml\XmlParser.cs:line 219 at PDFOperations.PDFOperations.CreatePDFFromXML(String XMLFileName, String PDFFileName, Int32 ApplicationID) in C:\SCC\PDFManager\PDFOperations\PDFOperations.vb:line 36 Your help would be much appreciated! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
