PCL to PDF creates blank file

trying to convert a PCL file to pdf and it create a blank file

I’ve tried with PCLloadOption and just pdf class and the results are the same.

With PDF class
Pdf pdf1 = new Pdf();

// bind the source PCL file with Pdf object
pdf1.bindPCL(filePath);
pdf1.setTruetypeFontMapPath(“C:\Windows”);
// save the resultant PDF document
pdf1.save(“C:\temp\test1-converted.pdf”);

With PCLloadOptions
PclLoadOptions loadoptions = new PclLoadOptions();
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(filePath, loadoptions);
doc.save(“C:\temp\test1-converted.pdf”);
Is there anything else I need to set ? Did not file much options.

Hi Roshini,


We are sorry for the inconvenience. Please share your sample source PCL document here, we will look into it and will guide you accordingly.

Best Regards,