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=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”><soap:Body><ConvertDocToHtmlResponse xmlns=“http://talentrover2.com/”><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)

@sysadmin12,

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();
   viewer.View(viewOptions);
}

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