Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to programatically export .pdfs? #419

Open
hmcvieira opened this issue Feb 10, 2024 · 3 comments
Open

Any way to programatically export .pdfs? #419

hmcvieira opened this issue Feb 10, 2024 · 3 comments

Comments

@hmcvieira
Copy link

I would like to use mercury to export reports to .pdf files programmatically, meaning that I want to be able to run a command in which I identify the report name and the widget values and the report gets exported to a certain folder without interacting with the GUI. Is that possible?

@pplonski
Copy link
Contributor

Hi @hmcvieira,

Right now there is no code for this, but it would be a nice feature. I'll be happy to add it. May I ask about details about your use case? Do you plan to run PDF export one time or in periodic schedule?

@hmcvieira
Copy link
Author

hmcvieira commented Feb 12, 2024

Hi @pplonski, the idea would be to be able to have an export command/function that would allow the export, giving the desired output path as an argument. Additionally if possible, it would be nice to be able to set the widget values as input as well to that function. For example, if I have to export a report for each client of the 1000 total, I would loop through the list of client, filtering the report by their ID. It would be awesome if possible.

@pplonski
Copy link
Contributor

Maybe you should just check nbconvert tool for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants