lfoppiano / streamlit-pdf-viewer

Streamlit PDF viewer
https://structure-vision.streamlit.app/
Apache License 2.0
94 stars 6 forks source link

Support URL as input #33

Closed lfoppiano closed 4 days ago

lfoppiano commented 7 months ago

Supplying an URL http/https should download the file and show it

samuelrhjoseph commented 4 days ago

this would be really really useful!

lfoppiano commented 4 days ago

Hi @samuelrhjoseph, I'm afraid that this functionality in the pdf_viewer cannot be implemented because streamlit reloads the page at each interaction causing the pdf_viewer to reload and to try to download the file. This functionality should be implemented in the streamlit application which can cache the document and avoid unnecessary computation and downloads.