If you are looking for an advanced HTML SDK, you have come to the right place. Aspose.HTML is the one we are going to talk about in this guide. This SDK is available in almost all popular programming languages. However, we will touch on Aspose.HTML for Java and explore a bit of it. There are a number of features exposed by this powerful SDK. In this blog post, we will discuss how to convert SVG to TIFF in Java programmatically. Therefore, stick to this article till the end so that you do not miss any of the sections discussed here.
HTML SDK Installation
For installation, you can either download it from this page or use the following Maven configurations:
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-html</artifactId>
<version>25.7</version>
</dependency>
Convert SVG to TIFF in Java using Aspose.HTML
Follow the steps mentioned below to achieve SVG to TIFF conversion:
- Define the path to the documents directory.
- Create an instance of the SVGDocument with the source SVG file.
- Instantiate an instance of the ImageSaveOptions class and set the target image file format(i.e. TIFF).
- Invoke the convertSVG method of the Converter class to convert SVG to TIFF.
The code snippet given below demonstrates how to convert SVG to TIFF in Java:
Output:
Get a Free License
You may avail a free temporary license to try this SDK beyond evaluation limitations.
Ask a question
You may ask your questions on our forum.
Final Thoughts
We are ending this blog post here. This guide covered a very common yet important conversion developers perform. Now, you know how to convert SVG to TIFF in Java using Aspose.HTML for Java. Being a Java developer, you can leverage this HTML SDK in terms of HTML and image file format conversions. Further, you may dive deeper to explore this SDK. So, the following resources will be helpful for you:
GitHub Example
Visit our GitHub repo to review our implementations.
See Also
We recommend visiting the following articles for more information on: