Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
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
Solved! Go to Solution.
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.
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
Hi Zhengdong, that was really useful.
Thanks you!
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
84 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |