Free Support Forum - aspose.com

Word File with embedded Excel converted to PDF does not display numbers

Attached file has embedded excel. Converting it to PDF results in black squares in the PDF where numbers should be.

Code snippet:

LicenseManager.getInstance(); // make sure we have license loaded
com.aspose.words.Document doc = new com.aspose.words.Document(new ByteArrayInputStream(content));

// accept revisions, to show only latest
doc.acceptAllRevisions();

//join runs
doc.joinRunsWithSameFormatting();

if (pdf)
{
PdfSaveOptions options = new PdfSaveOptions();
doc.save(os, options);
content = os.toByteArray();
}

Hello

Thanks for your interest in Aspose.Words. Actually I do not see any problems with the PDF document you have attached. Could you please create screenshot on your side which shows me the problem?

Please see the attached screenshot.

Best regards,

Again, I apologize. I should have checked the PDF. We do post-processing on the PDF and convert it to PNG. I was looking at the PNG.

The problem is not in Aspose but in our post processing code that converts to PNG, I apologize for not checking there first.

D

Hi

It is perfect, that you already found the reason of the problem. Please let me know in case of any issues; I will be glad to help you.

Best regards,