I’m getting a Stack Overflow Exception while trying to generate a PDF file from an ODS file.
The code is:
Dim xls As New Workbook(pFileName)
Dim saveOptions As New Aspose.Cells.PdfSaveOptions()
saveOptions.SecurityOptions = NewAspose.Cells.Rendering.PdfSecurity.PdfSecurityOptions()
saveOptions.SecurityOptions.ExtractContentPermission = False
saveOptions.SecurityOptions.PrintPermission = False
saveOptions.SecurityOptions.ModifyDocumentPermission = False
saveOptions.SecurityOptions.FullQualityPrintPermission = False
saveOptions.SecurityOptions.AssembleDocumentPermission = False
saveOptions.SecurityOptions.AnnotationsPermission = False
saveOptions.SecurityOptions.FillFormsPermission = False
saveOptions.SaveFormat = Aspose.Cells.SaveFormat.Pdf
xls.Save(processedFile, saveOptions)
I’m getting the exception in the red marked line.
The file I’m using is attached for sample.
Thank you in advance.