Convert EPS to BMP via Java
Native and high-performance PDF file creation without Adobe Acrobat installation using Java.
How to Convert EPS to BMP Using Java
In order to convert EPS to BMP, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C++ platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.PDF
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-pdf</artifactId> <version>version of aspose-pdf API</version> <classifier>jdk17</classifier> </dependency>
Steps to Convert EPS to BMP via Java
Java developers can easily load & convert EPS files to BMP in just a few lines of code.
- Initialize a new Document
- Create & set the instance of BmpDevice class with Size & Resolution
- Call BmpDevice.Process method with page index & output file path as parameters
- Finally, save the output BMP file
Aspose.PDF for Javais supported on all major operating systems. Just make sure that you have the following prerequisites.
This sample code shows EPS to BMP Java Conversion
// load EPS with an instance of Document Document document = new Document("template.eps"); // create an object of BmpDevice PngDevice renderer = new BmpDevice(); // convert first of a particular PDF page to BMP format renderer.process(document.getPages().get_Item(1), "output.bmp");