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 11.7.0.0

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();
pdf.BindFO(foFilePath);
pdf.Save(@“c:\myFile.pdf”);

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

Exception thrown: ‘System.IndexOutOfRangeException’ in Aspose.Pdf.dll
then
Exception thrown: ‘System.FormatException’ in mscorlib.dll
and
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.

Regards.

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,