ByteScout PDF To HTML SDK - C# - Convert PDF To HTML (Simple Layout) From Page - ByteScout

ByteScout PDF To HTML SDK – C# – Convert PDF To HTML (Simple Layout) From Page

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF To HTML SDK – C# – Convert PDF To HTML (Simple Layout) From Page

How to convert PDF to HTML (simple layout) from page in C# with ByteScout PDF To HTML SDK

The tutorial below will demonstrate how to convert PDF to HTML (simple layout) from page in C#

This sample source code below will demonstrate you how to convert PDF to HTML (simple layout) from page in C#. ByteScout PDF To HTML SDK is the SDK for PDF to HTML conversin. Generates static HTML version of input PDF and reconstructs all visual layout, text positions, vector and raster drawings, images, and form elements. Generated HTML requires no special software and can be viewed in any Internet browser. It can convert PDF to HTML (simple layout) from page in C#.

The SDK samples like this one below explain how to quickly make your application do convert PDF to HTML (simple layout) from page in C# with the help of ByteScout PDF To HTML SDK. Just copy and paste the code into your C# application’s code and follow the instruction. Implementing C# application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System; using System.Diagnostics; using Bytescout.PDF2HTML; namespace ExtractHTMLFromPage { class Program { static void Main(string[] args) { // Create Bytescout.PDF2HTML.HTMLExtractor instance HTMLExtractor extractor = new HTMLExtractor(); extractor.RegistrationName = "demo"; extractor.RegistrationKey = "demo"; // Set plain HTML extraction mode extractor.ExtractionMode = HTMLExtractionMode.PlainHTML; // Load sample PDF document extractor.LoadDocumentFromFile("sample2.pdf"); // Convert 2-nd page to HTML and save it to file extractor.SaveHtmlPageToFile(1, "output.html"); // Cleanup extractor.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("output.html"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF To HTML SDK Home Page

Explore ByteScout PDF To HTML SDK Documentation

Explore Samples

Sign Up for ByteScout PDF To HTML SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF To HTML SDK Home Page

Explore ByteScout PDF To HTML SDK Documentation

Explore Samples

Sign Up for ByteScout PDF To HTML SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next