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

Free Support Forum - aspose.com

Aspose.Pdf.Generator.Pdf.BindFO index out of range exception

Hi, i’ve an issue with the method “BindFo” with Aspose.pdf.dll version

I try to convert my xslt-fo file to pdf using the code bellow with the file in attachment:

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();

I’m getting an error when i call "pdf.BindFO(foFilePath);"

Exception thrown: ‘System.IndexOutOfRangeException’ in Aspose.Pdf.dll
Exception thrown: ‘System.FormatException’ in mscorlib.dll
Exception thrown: ‘System.FormatException’ in mscorlib.dll

After that, if i call pdf.Save(@“c:\myFile.pdf”);, i have an error :
Exception thrown: ’ ’ in Aspose.Pdf.dll
Additional information: Zero Anchor table offset in BaseArray Table(offset=1532)

Does anyone have any idea?

Thanks by advance.


Hi Mardine,

Thanks for contacting support.

I have tried generating PDF from the XSL-FO file which you have shared and was unable to notice any issue. Please note that you are using an old version of API. Please try generating PDF with the latest version of the Aspose.Pdf for .NET which can be found in the Downloads section. I have also attached the generated output for your reference. In case if you still face any issue please feel free to let us know.

We are sorry for the inconvenience.

Best Regards,