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?

Thanks!

@nicolashh,
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:
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwetransfer.com%2Fdownloads%2F1885cbaf429a80d707e077ebe67cfacb20220221160231%2Fd47e564e1c37830d47c3ece99d849bfe20220221160254%2F72bc40%3Futm_campaign%3DWT_email_tracking%26utm_content%3Dgeneral%26utm_medium%3Ddownload_button%26utm_source%3Dnotify_recipient_email&data=04%7C01%7Cgerda.oppewal%40aprimo.com%7C0d368ce4a36d4fa82aa208d9f553acc0%7C33193d21aee942f2bbda9bf2656c8275%7C0%7C0%7C637810563963592790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=Zdb3%2BhlD635Nk20FPnM%2Fb0KyzufBLbBrDJv9lb8lqVA%3D&reserved=0

.NET Framework 4.8
OS - latest Mac and Win OS

@nicolashh,
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)

@nicolashh,
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?

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

@nicolashh,
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?

@nicolashh,
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?

@nicolashh,
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?

@nicolashh,
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.

@nicolashh,
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.