Tech Specs
How-to C#
How-to VB.NET
Convert PDF to HTML
Work with Other SDKs
Convert PDF to HTML
Home ›› XDoc.PDF ›› C# PDF: Convert PDF to HTML

C#.NET PDF SDK - Convert PDF to HTML in C#.NET

How to Use C# .NET XDoc.PDF SDK to Convert PDF to HTML Webpage in C# .NET Program

Best C#.NET PDF Converter SDK for converting PDF to HTML in Visual Studio .NET

Free .NET framework library for converting PDF to HTML in both C#.NET WinForms and ASP.NET application

Complete sample source code for quick integration and converting PDF to HTML in C#.NET class

Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint

Embed converted HTML files in HTML page or iframe

Use JS (jquery) to control PDF page navigation

Cross browser supported, like chrome, firefox, ie, edge, safari

Embed zoom setting (fit page, fit width)

Turn PDF form data to HTML form

Export PDF images to HTML images

Embed PDF hyperlinks to HTML links

Our PDF to HTML converter library control is a 100% clean .NET document image solution, which is designed to help .NET developers convert PDF to HTML webpage using simple C# code. This Visual C#.NET PDF to HTML conversion control component makes it extremely easy for C# developers to convert and transform a multi-page PDF document and save each PDF page as a separate HTML file in .NET class application.

The HTML document file, converted by C#.NET PDF to HTML converter toolkit SDK, preserves all the original anchors, links, bookmarks and font style that are included in target PDF document file. Besides, the converted HTML webpage will have original formatting and interrelation of text and graphical elements of the PDF.

This C#.NET PDF to HTML conversion library can eliminate the crashing issue of web browser when it is trying to display a PDF document file inside a browser window. Besides, this PDF converting library also makes PDF document visible and searchable on the Internet by converting PDF document file into HTML webpage.

How to Use C#.NET Demo Code to Convert PDF Document to HTML5 Files in C#.NET Class

Add necessary references:










Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PDF;

This is a C# programming example for converting PDF to HTML.

PDFDocument pdf = new PDFDocument(@"C:\input.pdf");
pdf.ConvertToVectorImages(ContextType.HTML, @"C:\demoOutput\", "test", RelativeType.HTML);