We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfSaveOptions class is not defined

Hi there,


I am trying to convert excel to pdf using aspose.cells 4.0.1.0, but I am getting a reference error saying PdfSaveOptions is not defined? Is it due to version issue?

Thanks

Wes

Hi,


Well, PdfSaveOptions is newer API, so it was not there in the older version that you have i.e., v4.0.1.x. Also the version you are using does not support to directly convert to PDF file format, this feature was not supported at that time. We highly recommend you to kindly upgrade to latest Aspose.Cells versions (e.g Aspose.Cells for .NET v8.5.2 (latest)) as over the years we have included tremendous enhancements and added more valuable features to make the product more robust and feature rich APIs. The latest versions also support to convert Excel spreadsheets to PDF, chart to image and sheet to image and many more advanced features.

Thank you.

So it is a version issue, thanks for your help!

Hi,

Thanks for your posting and using Aspose.Cells.

Yes, we found you are facing this issue because of older version. Using latest version will resolve this issue. Let us know if you encounter any other problem, we will be glad to look into it and help you further.