Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Thu Oct 22, 2020 10:08 am

Hello,

I'm generating an xlsx file, and at the end I'm converting this file to a pdf. In the xlsx file, I'm putting 1 image.
When I convert to pdf, the image is not present.
Do you know why it's happening?

This is how I convert xlsx to pdf:

Code: Select all
       
        public string XlsxToPdf(string filename)
        {
            var filenamePdf = Path.ChangeExtension(filename, ".pdf");
            Workbook workbook = new Workbook();
            workbook.LoadFromFile(filename);
            workbook.SaveToFile(filenamePdf, FileFormat.PDF);
            return filenamePdf;
        }



Thank you
Attachments
Indicateur_CREPS de Bordeaux_2020_22102020.pdf.zip
Here is the pdf generated
(38.99 KiB) Downloaded 142 times
Indicateur_CREPS de Bordeaux_2020_22102020.xls.zip
Here is an exemple of xlsx
(51.73 KiB) Downloaded 149 times

kdebeil@hotmail.com
 
Posts: 4
Joined: Fri Sep 09, 2016 7:42 pm

Fri Oct 23, 2020 2:33 am

Hello,

Thanks for your inquiry.
I tested your case with the latest Spire.XLS Pack(Hotfix) Version:10.10.6 and indeed reproduced your issue. Besides, I also noticed that the other pictures were not rendered correctly, as shown below. This issue has been logged into our bug tracking system with the ticket SPIREXLS-2863. Our Dev team will further investigate and fix it. If there is any update, we will let you know. Apologize for the inconvenience caused.

screenshot.png
screenshot.png (54.39 KiB) Viewed 977 times


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Oct 23, 2020 7:29 am

Brian.Li wrote:Hello,

Thanks for your inquiry.
I tested your case with the latest Spire.XLS Pack(Hotfix) Version:10.10.6 and indeed reproduced your issue. Besides, I also noticed that the other pictures were not rendered correctly, as shown below. This issue has been logged into our bug tracking system with the ticket SPIREXLS-2863. Our Dev team will further investigate and fix it. If there is any update, we will let you know. Apologize for the inconvenience caused.

screenshot.png


Sincerely,
Brian
E-iceblue support team



Hello Biran,
Thank you for your answer.
I only get the problem with 1 image at the top of document.
The ones you show on your picture are graphs and are visibles in the pdf I send you. I'm not sure there is something wrong about this.
Thank for your help.
Best Regards.
Kevin

kdebeil@hotmail.com
 
Posts: 4
Joined: Fri Sep 09, 2016 7:42 pm

Fri Oct 23, 2020 8:40 am

Hello,

Thanks for your response.
This may be because that you are using a different version of Spire.XLS than I am, so the generated results are different. Anyway, our Dev team will fix this issue to ensure that the generated PDF content is consistent with the Excel file. Once there is any good news, we will let you know.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Wed Nov 18, 2020 8:08 am

Hello,

Glad to inform you that we just released Spire.XLS Pack(Hotfix) Version:10.11.7 which fixes your issue, please download it from the following links to test on your side. Look forward to your testing result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.XLS/10.11.7

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.XLS