Free Support Forum -

Convert PDF to HTML using .NET

Can you please provide the sample code to convert PDF to HTML using .net. I am trying to use Converter class but not able to find any method for the same.

I have tried using API and it is working fine.I need same configuration with my sample code as well.

1 Like


Using GroupDocs.Conversion for .NET API you can convert a PDF document to HTML with just a few lines of code:

using (Converter converter = new Converter(@"D:/sample.pdf"))
     MarkupConvertOptions options = new MarkupConvertOptions();
     converter.Convert(@"D:/output.html", options); 

Furthermore, have a look at this documentation article in order to learn more about advance conversion options/features. You can also explore our open-source example project available at GitHub. Please note that this code example uses latest version (20.3) of the API.

1 Like