streamlit-ext
streamlit-ext copied to clipboard
Is it possible to support download for PDF and docx as well?
Hi,
Thanks, this really saves a lot of time for me. Would you be able to extend the extension to offer PDF and word versions as well?
It already support these files.
import streamlit as st
import streamlit_ext as ste
with open("abc.pdf", "rb") as f:
content = f.read()
ste.download_button("Download", content, "hello.pdf")