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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
GustavoSotoT
Frequent Visitor

Download images from powerbi report

Hi there! I am trying to download images from a powerbi report.
I already tried to use Powerbi API in Python but didn't get any results.
I need to obtain images of the graphs in this report, ideally using python or R, any help is appreciated
 

1 ACCEPTED SOLUTION
v-zhengdxu-msft
Community Support
Community Support

Hi @GustavoSotoT 

 

For direct image extraction using APIs, as of my last update, Power BI does not provide a direct API to extract images of visuals from reports. The Power BI REST API primarily focuses on operations such as pushing data into datasets, creating reports, and managing workspaces.

While not directly using Python or R, another workaround is to export your Power BI reports to PDF and then use Python libraries such as PyMuPDF or PyPDF2 to extract images from the PDF. This method is more of a workaround and might not yield the highest quality images as directly exporting them as images from Power BI.

Here for your reference:

How to extract images from PDF in Python? - GeeksforGeeks

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
clausm73
Helper III
Helper III

It is quite possible to download report pages as images using Python and Semantic Link Labs library by Microsoft.

sempy_labs.report package — semantic-link-labs 0.7.3 documentation

clausm73_0-1726059860805.png

 

GustavoSotoT
Frequent Visitor

Hi Zhengdong, that was really useful.

 

Thanks you!

v-zhengdxu-msft
Community Support
Community Support

Hi @GustavoSotoT 

 

For direct image extraction using APIs, as of my last update, Power BI does not provide a direct API to extract images of visuals from reports. The Power BI REST API primarily focuses on operations such as pushing data into datasets, creating reports, and managing workspaces.

While not directly using Python or R, another workaround is to export your Power BI reports to PDF and then use Python libraries such as PyMuPDF or PyPDF2 to extract images from the PDF. This method is more of a workaround and might not yield the highest quality images as directly exporting them as images from Power BI.

Here for your reference:

How to extract images from PDF in Python? - GeeksforGeeks

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.