Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mshao
Helper II
Helper II

Issue with PNG Image Transparency and Background Color in Power BI Report Builder PDF Export

Hi Team,

I inserted an image as the cover component for the homepage in Report Builder. The image is in PNG format with a transparent background, and it contains white lines with varying levels of brightness.

After configuring, I published the report to Power BI Service, and the web page display looks fine. However, when I export the report to PDF, all the lines appear with the same color.

The Display on service:

mshao_0-1735293705094.png

 

When export to pdf:

mshao_1-1735293727380.png

 

I tried converting the image to JPEG format and added a background color matching the report's background. While the background colors appear consistent in Power BI Service, they are different when exported to PDF.

mshao_2-1735293869177.png

Have you ever met the same issues? Do you have any ideas how can I deal with this issue?

 

Thanks,

May

1 ACCEPTED SOLUTION

Hi @mshao  ,
Thanks for reaching out to the Microsoft fabric community forum.

Since PDF exports can handle transparency inconsistently, especially when flattening the image, you can only resolve this by removing transparency from the PNG image and using images with a solid colors.

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to give "Kudos"

Thanks and Regards

View solution in original post

7 REPLIES 7
v-nmadadi-msft
Community Support
Community Support

Hi @mshao 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @mshao,
Thanks for reaching out to the Microsoft fabric community forum.

Please check the Font embeddings and Compression part of this document
Export Power BI paginated report to a PDF File (Power BI Report Builder) - Power BI | Microsoft Lear...

vnmadadimsft_0-1735373966832.png

 

Your issue is rooted in how pdf and jpg handle transparency, when a transparent PNG is added to a PDF, the transparency layer is often flattened (merged with a solid background color), leading to unexpected results in appearance.
PDFs do support transparency, but it is not handled in the same way and as well as PNG.

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to give "Kudos"

Thanks and Regards

Hi Team,

 

Thank you for your reply. 

 

Do you have any suggestion how can I handle this situation and get what i want?

Hi @mshao  ,
Thanks for reaching out to the Microsoft fabric community forum.

Since PDF exports can handle transparency inconsistently, especially when flattening the image, you can only resolve this by removing transparency from the PNG image and using images with a solid colors.

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to give "Kudos"

Thanks and Regards

rajendraongole1
Super User
Super User

Hi @mshao - I think it is due to how Power BI Service and PDF export handle transparency and color rendering.If possible, avoid using elements with semi-transparency in the image. Replace them with solid lines or gradients that visually mimic the transparency.

If you're using Power BI Service to export to PDF, try exporting from Power BI Desktop or SQL Server Report Builder instead.Different tools might handle image rendering more consistently.

If you provide more details about the tools you're using (e.g., Report Builder version, editing tools for the PNG), I can assist further!

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





And also I tried to add the same background of my picture both in PNG and JPEG format in RGB format.

But when I export pdf again, the color under the same RGB code display as different color. I don't know why and how can I deal with it. 

It's not possible to set the picture for the whole page since there are some other components.

Thank you so much for your reply. 

I use Power BI Report builder and even when I export PDF via Power BI report builder, the issue still exists.

The version of Power BI report builder is v15.7.1811.11

And the PNG is from figma and if you have any advice maybe i can change it via some tool.

 

Do you have any ideas how can I handle this issue?

 

Thank you again for your kindly reply.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.