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

Free Support Forum - aspose.com

Strange results converting to a PDF

Hi there,

I’ve got the attached Excel-File as a basis for my converstation. I try to convert it to an PDF with the following Java-Code:

//Instantiate the Workbook object

Workbook workbook = new Workbook();


//Save the document in Aspose.Pdf.Xml format

workbook.save(“MySpreadsheet.xml”, FileFormatType.ASPOSE_PDF);

//Bind the XML file (containing spreadsheet data) with the Pdf object

Pdf pdf = Pdf.bindXML(new FileInputStream(“MySpreadsheet.xml”));

//Create the PDF document by calling its Save method

pdf.save(new FileOutputStream(“MySpreadsheet.pdf”));

However, the resulting PDF looks strange - the data from the Excel-File is all black. Please see attachment PDF.

I hope you can help.



Here is the XML that is generated using the above mentioned code - it looks good, doesn’t it?

And this is the generated PDF! It looks strange, doesn’t it?

Any help will be appreciated!


Thanks for the template files.

We found the issue and will fix it soon.

Thanks for being patient!


thanks for the update. Please drop me a note as soon as you have fixed it.



Hi Christian,

Please try the fix ( attached @ the thread: http://www.aspose.com/community/forums/122085/exception-on-getstringvalue/showthread.aspx#122085

Note: Currently PageSetup headers / footers are not supported when Excel2Pdf conversion is done for java. We will support this feature soon.

Thank you.

It works. Thanks for your fast help and your fast and good support.