Issue with itextsharp 5.4 while converting XML to PDF

bbvxoa

New Member
I am using following code to convert and XML into PDF by using itextsharp 5.4\[code\]protected void Page_Load(object sender, EventArgs e){ Document document = new Document(); PdfWriter.GetInstance(document, new FileStream("ExampleDoc.pdf", FileMode.Create)); ITextHandler xmlHandler = new ITextHandler(document); xmlHandler.Parse("ExampleDoc.xml");}\[/code\]I am getting error in line \[code\]ITextHandler xmlHandler = new ITextHandler(document);\[/code\]Errro is: missing directive or assembly referenceI have come to know that \[code\]ITextHandler\[/code\] in no longer supported in \[code\]itextsharp 5.4.\[/code\] So what should I do instead of that? I did not get any solid answer for this anywhere on net. Please suggest.OR, Should I convert xml to html and then that html to pdf?
 
Back
Top