PDF to xHTML conversion


#1

Could you please tell me know whether I can convert the PDF to xHTML?


#2

@ajimr11

You may please use following code snippet in order to achieve your requirements.

var doc = new Document(dataDir + "input.pdf");
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
// Make Xhtml
saveOptions.DocumentType = HtmlDocumentType.Xhtml;
doc.Save(dataDir + "output.xhtml", saveOptions);

In case you face any issue, please share your sample PDF document with us. We will test the scenario in our environment and address it accordingly.


#3

Thanks for the quick response. Will try with given source code.