We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PowerPoint slides to PDF conversion shows black bars

Hi,

we are converting the attached pptx file to a PDF with the following code and the resulting PDF shows black bars on top and bottom.

var presentation = Presentation.Open(fileStream);
var doc = PresentationToDPdfConverter.Convert(presentation);
var pdfStream = new MemoryStream();
doc.Save(pdfStream);
pdfStream.Seek(0, SeekOrigin.Begin);

Jan


Attachment: Test_41996dbb.zip

1 Reply

SB Suriya Balamurugan Syncfusion Team February 3, 2023 02:04 PM UTC

Hi Jan,

On further analyzing the reported problem, we have found that the transparency is applied for gradient stops for two rectangle shapes in front of the image in the input PowerPoint document.


At present, our PDF library doesn’t have this support to apply transparency for gradient fill of shape in PDF document in the ASP.NET Core platform. So, you have faced the reported problem. We have already logged this as a feature request in our database. We don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented.

The status of the feature can be tracked through below feedback link:
https://www.syncfusion.com/feedback/17617/support-to-apply-transparency-for-gradient-brush-in-pdf-document

However, as a workaround, we suggest you to select and hide the particular shapes or send particular shapes back to the image in your input PowerPoint document.

We have modified your input PowerPoint document as per, and it can be downloaded from the below attachment.

Regards,
Suriya Balamurugan.


Attachment: Test_Modified_5c197438.zip

Loader.
Up arrow icon