The code for converting pdf to excel as given in the aspose documentation gives error

The code for converting pdf to excel as given in the aspose documentation is.

public class Pdf {

public static void main(String[] args) {

com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("C:\\Users\\pdf\\Desktop\\output.pdf");

com.aspose.pdf.ExcelSaveOptions excelsave = new com.aspose.pdf.ExcelSaveOptions();

pdfDocument.save("C:\\Users\\pdf\\Desktop\\Convertedpdftoexcel.xls", excelsave);

}

}

I have included the jar files.

When I run this the file generated is empty. I will attach the file in this mail.

thx.

Irfan.

Hi Irfan,


Thanks for your inquiry. It seems you are evaluating Aspose.Pdf for Java without any valid license, so getting an excel file with evaluation watermark text. Please make a request for 30 days temporary license and use it for evaluation. It will help you to accomplish the task.

Please feel free to contact us for any further assistance.

Best Regards,