MicroStrategy / mstrio-py

Python integration for MicroStrategy
Apache License 2.0
90 stars 60 forks source link

Unable to export a RSD to PDF #186

Open magerdaniel opened 6 months ago

magerdaniel commented 6 months ago

I'm trying to export a RSD as PDF. The code is beeing executed, but I can't open the generated PDF. Maybe I'm doing something wrong, but I'm running out of ideas. Many thx in advanced, Daniel JupyterFilesAndScreenShots.zip

magerdaniel commented 5 months ago

I got the problem. To store the file properly it needs to be converted like this:

import base64 with open('temp.pdf', 'wb') as theFile: theFile.write(base64.b64decode(mstr_resp.content))

So it was more a problem on my side, but I would like to open an EH to include a funtion where you can path over the file name and mstrio save the PDF file..

apiotrowskiMicroStrategy commented 1 month ago

Hi @magerdaniel

Thanks for the request. I created an internal backlog item for this request. I'll get back with updates if and when they're ready.