Hello,
We are encountering pb for converting a XLS file with a embedded image, this embedded image seems to be resized in the original XLS file but it is not in the generated pdf.
We tried with the latest AsposeCells version (8.3.2.1) but are geeting the same result.
Here is the original file and the generated pdf.
The progblme can be ssen in page 4 of the pdf
Thank for your help
Hi,
Thanks for the template file and details.
After an initial test, I observed the issue as you mentioned by converting your template
file to PDF file format. I found the complex image (in sheet 4) in the
template file is not converted fine in the output PDF file format, it shows
only a part of the image while zooming it and is not resized at all to
show the whole image on the page.
I have logged a ticket with an id “CELLSNET-43465” for your issue. We will look into it soon.
Once we have any update on it, we will let you know here.
Thank you.
Hi,
We have evaluated your issue further. Well, there is something wrong in rendering the complex image and we can’t figure it out in short time. As a workaround you may try setting ImageType property to be ImageFormat.Png in PdfSaveOptions while saving the spreadsheet to PDF file format, it would render the complex image Ok.
e.g
Sample code:
Workbook wb = new Workbook(srcFile);
wb.Save(pdfFile, new PdfSaveOptions { ImageType = ImageFormat.Png });
Thank you.
Hello,
We applied your workaround and indeed it renders the image correctly. Thanks for that.
But below the image, there are 4 drawings named BK1, BK2 ,BK3 and BK4.
The first 3 are almost OK but the BK4 (the blue one) is completly wrong.
Thank for your help.
Hi,
Thanks for your feedback.
Good to know that the workaround figures out most of your issues regarding the rendered complex image. You are right, there is still an issue with the bottom drawing object (BK4) as you pointed out, see the screen shot below:
<a href=“(”[[BL]]http://prntscr.com/6r94ok
[[/BL]]“>(”[[BL]]http://prntscr.com/6r94ok
[[/BL]]
I have logged this against your logged issue into our database. We will check if we could only figure it out for now.
Once we have any update on it, we will let you know here.
Thank you.
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan