Data Loss: Images are lost during xls to PDF transformation

Hi Team,


PFA - source document - Excel_Sample_2010.xlsx. Convert it using aspose-cells latest version 8.1.1.4 and you can see that image from page 4 & 5 are lost totally.
Code:

Workbook workbook = new Workbook(path)
com.aspose.cells.PdfSaveOptions pso = new com.aspose.cells.PdfSaveOptions();
pso.setImageType(ImageFormat.getPng());
workbook.save(path + “issue.pdf”, pso);

We cannot remove pso.setImageType(ImageFormat.getPng()); as this was a fix given for another issue (Sample.xlsx)

Please test and let me know if there is any workaround or raise appropriate issue and let us the the ETA.

Thanks,
Satyendra

Hi Satyendra,

Thanks for your posting and using Aspose.Cells.

We were not able to find any issues in the page 4 and 5 of output pdf. We have attached the output pdf for your reference.

We have generated the output pdf using the following code using the latest version. Please highlight your issues in a screenshot so that we could investigate this issue more closely.

Java


Workbook workbook = new Workbook(path);

com.aspose.cells.PdfSaveOptions pso = new com.aspose.cells.PdfSaveOptions();

pso.setImageType(ImageFormat.getPng());

workbook.save(path + “issue.pdf”, pso);

Please compare source and your PDF attached.
Clearly in page 4 & 5 images are missing.
PFA - Image highlighting the same.


Thanks,
Satyendra

Hi Satyendra,

Thanks for your screenshot highlighting this issue and using Aspose.Cells.

We were able to observe this issue. After using PdfSaveOptions.setImageType(ImageFormat.getPng()), images are lost in the output pdf. If this option is not used, images remain in the output pdf.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, this issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-40910 - Images are lost when PDF is rendered using PdfSaveOptions.setImageType(ImageFormat.getPng())

The issues you have found earlier (filed as CELLSJAVA-40910) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.