Hi Team,
I searched source code for pcl to tiff conversion. so i tried using pcl to pdf to tiff but while converting pdf , i can’t able to open the pdf file below is the source code.
package com.aspose.pdf.examples;
import java.io.FileNotFoundException;
import java.nio.file.Path;
import java.nio.file.Paths;
import com.aspose.pdf.*;
public final class ConvertPCLtoPDF {
private ConvertPCLtoPDF() {
}
private static Path _dataDir = Paths.get("/home/admin1/pdf-examples/Samples");
public static void main(String[] args) throws FileNotFoundException {
ConvertPCLtoPDF_Simple();
ConvertPCLtoPDF_Advanced();
}
public static void ConvertPCLtoPDF_Simple() {
PclLoadOptions options = new PclLoadOptions();
Document pdfDocument= new Document(_dataDir + "demo.pcl", options);
pdfDocument.save(_dataDir + "epub_test.pdf");
}
public static void ConvertPCLtoPDF_Advanced() {
PclLoadOptions options = new PclLoadOptions();
options.SupressErrors=true;
Document pdfDocument= new Document(_dataDir + "demo.pcl", options);
if (options.Exceptions!=null)
for (Exception ex : options.Exceptions)
{
System.out.println(ex.getMessage());
}
pdfDocument.save(_dataDir + "pcl_test.pdf");
}
}
.
The source file:pclfile.zip (1.5 KB)
ouput file:epub_test.zip (821 Bytes)
Thanks and regards
Pavithra sudhakaran