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, HTML to PDF conversion code snippet looks like this:
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.options.convert.PdfConvertOptions;...// Load the source HTML file
Converterconverter=newConverter("sample.html");// Set the convert options for PDF format
PdfConvertOptionsoptions=newPdfConvertOptions();// Convert to PDF format
converter.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 Java using GroupDocs.Conversion.
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.options.convert.WebConvertOptions;...// Load the source PDF file
Converterconverter=newConverter("sample.pdf");// Set the convert options for HTML format
WebConvertOptionsoptions=newWebConvertOptions();// Convert to HTML format
converter.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.