Hi Aspose team,
when I try to export PDF document to Excel:
DateTime Start = DateTime.Now;
try
{
if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string FileName = saveFileDialog1.FileName;
//Open document
Document pdfDocument = new Document(FileName);
// instantiate ExcelSave Option object
Aspose.Pdf.ExcelSaveOptions excelsave = new ExcelSaveOptions();
excelsave.UniformWorksheets = true;
pdfDocument.Save("c:\\temp\\html\\ToExcel.xls", excelsave);
MessageBox.Show((DateTime.Now - Start).ToString());
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
and then later try to open document I am getting:
“The file format and extension of “” does not match…”
If I export to file with XML extension then I cannot open this document by double click.
Exported file is attached.
Also second question - in original PDF I have formatting of tables (header has different color), in exported document formatting is gone.
I attached also original PDF document.
Thanks for help,
Oliver