PCL file convert to PDF : Error File Cannot be opened because It has no pages

sampleFile.zip (3.1 KB)

Hi

I have attached the sample file I used for this code below but the error is when I opened the pdf document. I currently in evaluation of your product for my company project

public static void main(String[] args) {

	InputStream in;
	try {
		in = new FileInputStream(new File("Document.pcl"));
		// Instantiate LoadOption object using PCL load option
		PclLoadOptions loadoptions = new PclLoadOptions();
		// Create Document object
		loadoptions.SupressErrors=true;
		Document doc = new Document(in, loadoptions);
		// Save the resultant PDF document
		doc.save("test1-converted.pdf");
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
}

@rmabini

I have been able to reproduce the issue on our end. A ticket with ID PDFJAVA-40472 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.