https://github.com/b4pt0r/streamlit_pdf_reader
Streamlit pdf reader component
https://github.com/b4pt0r/streamlit_pdf_reader
Last synced: about 2 months ago
JSON representation
Streamlit pdf reader component
- Host: GitHub
- URL: https://github.com/b4pt0r/streamlit_pdf_reader
- Owner: B4PT0R
- License: mit
- Created: 2023-12-27T10:46:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T21:25:01.000Z (over 1 year ago)
- Last Synced: 2024-12-09T16:59:20.579Z (10 months ago)
- Language: TypeScript
- Size: 191 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# streamlit-pdf-reader
Streamlit pdf reader component
## Installation instructions
```sh
pip install streamlit-pdf-reader
```## Usage instructions
```python
pdf_reader(source)
````source` can be either a local pdf file, a pdf file url, or a BytesIO
## Example
```python
import streamlit as st
from streamlit_pdf_reader import pdf_readersource1='./test.pdf'
pdf_reader(source1)source2="https://www-fourier.ujf-grenoble.fr/~faure/enseignement/relativite/cours.pdf"
pdf_reader(source2)source3=st.file_uploader("Choose a pdf file:")
if source3:
pdf_reader(source3)st.button("Rerun")
```