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

Free Support Forum - aspose.com

Truncated image with camera area in Excel to PDF rendering

Hello,
I have a problem with my excel file. I used the camera feature of excel to add an image into the header. When I convert the document to pdf with excel everything is ok. But when i use aspose to convert it in pdf the image recovered with the camera feature is truncated.
Here is the excel file. The logo truncated is in the header. And the logo recovered with the camera feature of excel is in the sheet TxEntité.
testtrunc.zip (746.2 KB)

Thank you

trunc.PNG (18.6 KB)

Here is an image of the header when I convert the excel file to pdf with aspose. The image at the right is truncated.

@helena.adi,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-48442 - Truncated image with camera area in excel to Pdf

@helena.adi,
The image is a cached Emf image. The EmfOnly records and EmfPlus records of the Emf image are different. Using the following code to prefer to use EmfPlus records, it will be OK.

Workbook wb = new Workbook("testtrunc.xlsm");

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();

pdfSaveOptions.EmfRenderSetting = EmfRenderSetting.EmfPlusPrefer;

wb.Save("output.pdf", pdfSaveOptions);

Thank you !
It works :slight_smile:

@helena.adi,
You are welcome. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.