i am trying to convert doc file into pdf but it is throwing following error
"class com.aspose.pdf.exceptions.InvalidPdfFileFormatException: Incorect file format"
i am using latest version of aspose
Here is my code snippet
Document doc = new Document( “C:\Users\Prodash001\Desktop\re.docx”);
try {
doc.save(“C:\Users\Prodash001\Desktop\re.pdf”, SaveFormat.Pdf);
}
catch(Exception ex)
{
System.out.println(ex);
}