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

Free Support Forum - aspose.com

An Image with a Width/Height of 0 Is Unexpectedly Displayed in PDF

For PPTX with an inserted image where width and height of 0. In the PPTX you do no longer see it. After ingestion into our DAM we create a so-called review file from it converting it to a PDF using Aspose.slides version 22.2.0.

the code that is executed is like this:

using (Presentation presentation = new Presentation(presentationPath))
    string pdfPath = Path.Combine(App.GetTemporaryFolder(TemporaryScope.Shared), Path.GetFileName(presentationPath));
    pdfPath = Path.ChangeExtension(pdfPath, ".pdf");
    presentation.Save(pdfPath, SaveFormat.Pdf); 

I can upload the PPTX if that is only visible to you?


Thank you for reporting the issue.

Please share the following data:

  • input presentation file
  • output PDF file
  • OS version on which the problem occurred
  • .NET target platform in your app

You can zip the files and upload the archive here.

Link to input pptx file and output pdf:

.NET Framework 4.8
OS - latest Mac and Win OS

Thank you for the additional information. But there is no output PDF in your archive. I’ve found some issues in output PDF on my side, but it would be great if you could share yours.

Here you go: On page 3 it shows the image that has width/height = 0 on the pptx

3E5F22FD85859FF5CD8E0A1DBB8E8E52.pdf (1.4 MB)

Thank you for the additional data. I’ve reproduced the problem with appearing the image in PDF and added a ticket with ID SLIDESNET-43074 in our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.

Thanks for the quick response. Do you have any idea on an ETA or target date?

I’ve requested plans for this issue from our development team. We will let you know soon.

The issue investigation has been scheduled for the next week. After the investigation, we will be able to estimate the time to fix it.

1 Like

Hi Andrey,
Does your team already have an idea on an ETA for this fix?

This issue has already been resolved. The fix will be included in Aspose.Slides 22.3. This release will be published in the second half of March.

1 Like

Hi Andrey,
We upgraded to Aspose.slides 22.3 but the issue is still there. I also saw no reference to our ID SLIDESNET-43074 in the release notes. Can you please advise?

As far as I can see, the fix has not been included in version 22.3. Unfortunately, I don’t have information about the reason. Perhaps it was a mistake, we apologize for any inconvenience. The fix will be included in Aspose.Slides 22.4.

That is unfortunate, do you have any view on an ETA?

Aspose.Slides 22.4 will be released in the second half of April.

Ok thanks, can you confirm that the fix will be in 22.4 for sure? Then we can reschedule work and customer communication.

The fix was planned for Aspose.Slides 22.4. I see it in our issue tracking system. Since the problem has already been solved, I think that this will be the case.

The issues you have found earlier (filed as SLIDESNET-43074) have been fixed in Aspose.Slides for .NET 22.4 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.