I am evaluating using aspose.pdf (v 3.9) to create PDF documents from Excel documents. The Excel documents are created using aspose.cells (v 4.3). As part of the evaulation, I ran into a problem displsying the PDFs under Acrobat Reader 7 (but not Adobe Reader 8 or 9) - I get the error
"there was an error opening this document".
When I used one of the online PDF analyzers (https://www.pdf-tools.com/osa/repair.aspx) to check the generated PDF, I see the following results:
The file is corrupt and cannot be repaired, but possibly recovered
Errors:
Open file.
0x80410108 - E - The end-of-file marker was not found.
0x8041010A - E - The 'startxref' keyword or the xref position was not found.
0x80410108 - E - The end-of-file marker was not found.
Close file.
A sample PDF (project_status.pdf) which does not display using Adobe Reader 7.1, but does display with Adobe Reader 9, is attached.
I am using the following code to convert the aspose.cells generated Excel file to a PDF:
MemoryStream ms = new MemoryStream();
workbook.Save(ms, FileFormatType.AsposePdf);
string fileName = string.Format("{0}.pdf", Title);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(ms, null);
Is there a different way to generate the PDF from aspose.pdf so that it displays using Acrobat Reader 7 as well as Adobe Reader 8 & 9?