lfoppiano / streamlit-pdf-viewer

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

Scroll to specific pages #24

Open lfoppiano opened 4 months ago

lfoppiano commented 4 months ago

I opened a new issue to discuss what was mentioned in https://github.com/lfoppiano/streamlit-pdf-viewer/issues/22#issuecomment-1934000304.

Is it possible to scroll down a specified page?

One possible use case could be that the user wants to link information extracted from the document with specific pages.

Odrec commented 4 months ago

In my use case this will be really helpful

Odrec commented 3 months ago

Additionally to this, it would be nice if we can navigate to a specific annotation. I'm using streamlit_pdf_viewer with an llm to ask questions about a set of pdfs and making annotations about the sources for the answers. So I display the sources along with the chat response. But if a user has several PDFs, it's complicated to navigate to all of them and search for the annotations. If there was a way to navigate to where an annotation is (at least the page) in a PDF that would work really nicely.