-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render only a selection of pages #1
Conversation
@t29mato I'm not so sure, but it seems you linked the wrong issue 🤔 |
streamlit_app.py
Outdated
st.divider() | ||
|
||
st.header("Page Selection") | ||
page_options = list(range(1, 101)) # Replace 101 with the actual number of pages + 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line indicates the problem with this feature... 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with your point. However, as a parameter for the library, it is an Optional List type and can be passed in the form of [1, 2, 3]
. How best to show this select box in the Structure-viewer? Another idea I'm considering is to allow users to input arrays as strings. Do you have any other ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ideas, without having the pdf in advance is not possible to guess any page range
Thank you for letting me know. |
I've improved the flow, and now the demo allow the selection of pages after the PDF document is loaded. |
Oh, you set it up to automatically fetch the page numbers on the backend. That's great. Thanks. |
Original issue
lfoppiano/streamlit-pdf-viewer#22