Convert PCL file to PDF File using JAVA with Aspose.PDF for Java

We have around 10 million PCL files that need to be converted to PDF.
Followed example code for PDF
// Instantiate LoadOption object using PCL load option
PclLoadOptions loadoptions = new PclLoadOptions();
// Create Document object
Document doc = new Document(“Document.pcl”, loadoptions);
// Save the resultant PDF document
doc.save(“test1-converted.pdf”);

We got blank file when running our test.
Questions:
What entries can be made for loadoptoins?
Does Document Class require a File or InputStream?
Is the conversion to PDF during the Save or when Document is created from
Document doc = new Document(“Document.pcl”, loadoptions)?

@jyoung59

There are no specialized options to make the conversion successful if it is not using the default code snippet. Furthermore, you can initialize Document object wit either FilePath or InputStream as per your convenience.

The conversion is performed at the time of Document.Save() method, however, API performs initial inspection of the file and maps its data accordingly at the time to loading. Nevertheless, could you please make sure that you are using a valid license before converting your PCL files. In case you still face an issue, please share your sample PCL file with us so that we can test the scenario in our environment and address it accordingly.