Excel-to-PDF Issues


#1

When I convert my Excel document to PDF, I lose a logo graphic, as well as vertical alignment for all cells.

Is there any solution for this?

Thanks.


#2

Excel2Pdf feature doesn't support to convert images.

For vertical alignment issue, could you post a sample file to show the problem? Thank you.


#3

By the way, which version of Aspose.Cells are you using?


#4

I've resolved the vertical alignment issues.

However, I still need to figure out how to preserve the logo. I realize the docs say that graphics are not preserved in the PDF conversion, but is there a way to add the logo back to the PDF after the converison?

I'm using Version 3.7.1.0.

Thanks.


#5

To add a logo to pdf, please check http://www.aspose.com/wiki/default.aspx/Aspose.Pdf/UseImageFromLocalDisk.html .


#6

Laurence wrote:
To add a logo to pdf, please check http://www.aspose.com/wiki/default.aspx/Aspose.Pdf/UseImageFromLocalDisk.html .

Thank you for the reply.

This is very clear on how to add an image to a PDF you are building, but I'm not sure how to insert an image into an existing PDF that has been generated from an Excel (i.e., Aspose.Cells) document. How do I hook into the specific cell I to which I want to add the logo?

Thanks.


#7

Please refer to http://www.aspose.com/wiki/default.aspx/Aspose.Pdf/UsingAsposeWordtoCreateXMLTemplate.html. That is an example for using Aspose.Words as template. It is similar for using Aspose.Cells as template. You can assign a ID for the cell you want to add logo and use GetObjectByID to get the cell.