XDoc.PDF
Features
Tech Specs
How-to C#
How-to VB.NET
Pricing
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:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.Imaging.SVG.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PDF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.


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);





public override void ConvertToVectorImages(ContextType targetType, String directory, String fileName, RelativeType type)

Description:
     Convert to html/svg files and save it on the disk.

Parameters: