HTML (Hyper Text Markup Language) is the extension for web pages created for display in browsers. Known as the language of the web, HTML has evolved with requirements of new information to be displayed as part of web pages.
It takes many file types when building a webpage. Web file formats define the standards for the development of webpages and are related to the platform in which these are built. A complete website can be built consisting of static as well as dynamic web pages.
Common web file extensions and their associate file formats include HTML (HyperText Markup Language), ASP (Active Server Pages), XML (Extensible Markup Language), CSS (Cascading Style Sheets), JSON (JavaScript Object Notation), and others.
With GroupDocs.Conversion you can easily convert web format into another file format. For example, the HTML to PDF conversion code snippet looks like this:
// Load the source HTML fileusing(Converterconverter=newConverter("sample.html")){// Set the convert options for PDF formatPdfConvertOptionsoptions=newPdfConvertOptions();// Convert to PDF formatconverter.Convert("converted.pdf",options);}
Put it simply - you just load an HTML file into the Converter class, select the desired output format and GroupDocs.Conversion does all the rest.
Note
Refer to the API reference for more conversion options and customizations.
Convert to web formats
On the other hand, converting your files to web formats is also quite simple and natural.
The following code snippet shows how to convert a PDF document to HTML format in C# using GroupDocs.Conversion.
// Load the source PDF fileusing(Converterconverter=newConverter("sample.pdf")){// Set the convert options for HTML formatvaroptions=newWebConvertOptions();// Convert to HTML formatconverter.Convert("converted.html",options);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.