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();
}
}