I am also interested in that functionality. Most browsers will display the PDF on a specific page when it is provided. For example, if you go to https://arxiv.org/pdf/2401.00107.pdf#page=4, you will automatically land on page 4. So, in the simplest implementation, your url_name
would be something like this: http://yourdomain.com/path_to_pdfs/{source["file_name"]}#page={source["page"]}
. I am not sure if it possible to use it in streamlit though. I am wondering if it could be combined with HTML iframe as mentioned here: Rendering PDF on UI - #21 by Marinaobdulia.