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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

2 REPLIES 2
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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