Getting Started – Aspose.HTML for Java

Getting Started

You can download the complete Java examples and data files from GitHub

What is HTML?

Since you are reading this page, we assume you know the answer. But, we are giving brief information to refresh your memory. HyperText Markup Language (HTML) is the standard markup language for creating Web pages. It defines the structure of web content. It can be assisted by other technologies such as Cascading Style Sheets (CSS) to describe a web page’s appearance/presentation and scripting languages such as JavaScript to describe functionality/behavior.

Benefits of using Aspose.HTML for Java

Using Aspose.HTML for Java in your project gives you the following benefits:

Rich set of features

Aspose.HTML for Java is designed to process not only HTML but all the related formats: CSS, SVG, JavaScript, EPUB, MHTML, and XHTML. That’s why it offers you a lot of features in many different areas:

You can learn more about all these and other features in the Features List article.

Performance and scalability

Aspose.HTML is a single file assembly written in Java, which supports JSE 1.6 versions. It is a fast, lightweight component that efficiently creates, converts, and edits HTML, XHTML, SVG, MHTML, and EPUB documents.

Aspose.HTML for Java is multi-thread safe as long as only one thread works on a document simultaneously. It is a typical scenario to have one thread working on one document. Different threads can safely work on different documents at the same time.

Minimal learning curve

Although many public classes, interfaces, and enumerations exist in Aspose.HTML, the learning curve is minimal. We have achieved this by designing our public API with the following goals in mind:

By fulfilling the first goal, we have achieved that our API is similar to those used by modern browsers, which means that our API is well structured and described.

An example of fulfilling the second goal can be seen in Converter API. On the one hand, you can convert HTML, XHTML, EPUB, MHTML, MD, or SVG to many output formats with just one line of code.

1// @md products/html/en/java/getting-started/_index.md
2// Invoke the ConvertHTML method to convert the HTML to PDF.
3Converter.convertHTML("<span>Hello World!!</span>", ".", new PdfSaveOptions(), $o("output.pdf"));
view raw ConvertHTMLToPDF hosted with ❤=❤=❤ by GitHub
1// @java java/com/aspose/html/examples/java/com/aspose/html/examples/Examples_Java_ConvertHTMLToPDF.java.java
2Converter.convertHTML(
3   "<span>Hello World!!</span>", ".",
4   new PdfSaveOptions(), "output.pdf");

but on the other hand, you can fine-tune the conversion process, if you want to.

Technical Support

Aspose provides unlimited free technical support for all its products. The support is available to all users, including evaluation. If you need help with Aspose.HTML, consider the following:

If you have an issue with Aspose.HTML, follow these simple steps to make sure it is resolved most efficiently:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.