Convert Streamlit Page to PDF?

Hi everyone,

I have a specific need to convert my Streamlit page to a pdf (or any similar image format). There are some tools out there existing to convert html to pdf, such as: https://wkhtmltopdf.org/ and xhtml2pdf Β· GitHub. I’ve tried these without success (wkhtmltopdf operating on my Streamlit localhost creates an empty pdf, for example).

Does anyone know if it is possible to convert a Streamlit page to a pdf?

Bonus if it can accommodate me interacting with the page first before creating a static rendering (ie. clicking to open some expander buttons first, etc.).

1 Like

Hi @daniel.remine,

Thank you for sharing with the Streamlit community!

I would recommend checking out the following threads which cover your question:

Best,

Caroline

1 Like

Thank you Caroline! Your links are a big help!