PLT format files are vector-based files that are used by plotter printers. These files ensure precision and accuracy in printing jobs. However, you can convert a PLT file to PDF programmatically using Java language. The PDF format file is device independent thus making your file compatible with a lot of platforms and system environments. Let us take an overview of upcoming details in this article:
- PLT to PDF Converter – Java API Installation
- Convert PLT to PDF Programmatically using Java
- Convert PLT to Image like JPG, PNG Programmatically in Java
PLT to PDF Converter – Java API Installation
Aspose.CAD for Java API supports working with PLT files along with several other supported file formats. You can easily configure the API by downloading the JAR file from New Releases, or from the Aspose Repository with the following configurations in the pom.xml file:
Repository:
<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://repository.aspose.com/repo/</url>
</repository>
</repositories>
Dependency:
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<version>20.11</version>
</dependency>
</dependencies>
Convert PLT to PDF Programmatically using Java
You can easily convert a PLT file to PDF document with great fidelity. Below are the steps for PLT to PDF conversion:
- Load input PLT file
- Setting PdfOptions object
- Specify CadRasterizationOptions instance
- Save PLT to output PDF
The code below shows how to convert PLT to PDF programmatically using Java:
Convert PLT to Image like JPG, PNG Programmatically in Java
You can convert PLT file to image with the following steps:
- Load input PLT file
- Setting Image Options with ImageOptionsBase
- Initialize CadRasterizationOptions object
- Save PLT to output Image PNG, JPG, etc.
The following code explains how to convert PLT file to an image like JPG, PNG, etc. programmatically using Java language:
Conclusion
In this article, you have explored how to convert PLT (plotter) file to PDF or image formats including JPG, PNG, etc. Moreover, you can explore further use cases by downloading and testing the Examples project. We would love to hear your suggestions and feedback.