You can find more details at: Convert PCL to PDF Document in Java
Last active
March 16, 2022 08:17
-
-
Save aspose-com-gists/8cc0dfaefc9968ce488ebc5274840b6b to your computer and use it in GitHub Desktop.
Convert PCL to PDF Programmatically in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load input PCL file | |
Image image = Image.load("file.pcl"); | |
// Initialize CadRasterizationOptions class object | |
CadRasterizationOptions rasterOptions = new CadRasterizationOptions(); | |
rasterOptions.setPageHeight(1000); | |
rasterOptions.setPageWidth(1000); | |
// Create PdfOptions class instance | |
ImageOptionsBase options = new PdfOptions(); | |
options.setVectorRasterizationOptions(new CadRasterizationOptions()); | |
// Save output PDF file | |
image.save("file.pdf", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment