I m using
code......
public class DOCToPDF { public static void main(String[] args) throws Exception { // The path to the documents directory. String dataDir = Utils.getDataDir(DOCToPDF.class); // Instantiate PDF object Pdf pdf1 = new Pdf(); // bind the source PCL file with Pdf object pdf1.bindPCL(dataDir + "letterlegal5.doc"); // save the resultant PDF document pdf1.save(dataDir + "converted.pdf"); System.out.println("PCL to PDF conversion performed successfully!"); } }
it giving :-Error: Could not find or load main class com.aspose.pdf.examples.asposepdf.conversion.DOCToPDF
Could u help me.how to convert doc to pdf file.