Free Support Forum -

Convert PDF to HTML in .NET

Hi Team,

We are trying to parse the same file in PDF and the doc format and for Doc we are getting it converted to HTML and not the PDF.

FYR failed response:

<?xml version=“1.0” encoding=“utf-8”?><soap:Envelope xmlns:soap=“” xmlns:xsi=“” xmlns:xsd=“”><soap:Body><ConvertDocToHtmlResponse xmlns=“”><ConvertDocToHtmlResult><Error>A generic error occurred in GDI+.</Error></ConvertDocToHtmlResult></ConvertDocToHtmlResponse></soap:Body></soap:Envelope>

FYR attached the file supplied

Thanks,Holly_Greasley_OriginalCV (1).pdf (117.2 KB)


We’d recommend you to use latest version of the API that is 20.6.1. Have a look at migration notes. Document rendering process is quite simplified now as compare to 19.x releases.
This is how you render a PDF to HTML:

using (Viewer viewer = new Viewer("sample.pdf"))
   HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();

You can also explore our open-source UI project and console application available at GitHub. Do let us know in case of any issue.