GPT PDF Reader
GPT PDF Reader is a Python package that utilizes GPT-4V and other tools to extract and process information from PDF files.
Features
- Extracts figures from PDF files using the
pdffigures2Scala library. - Converts PDF pages to images and uploads them to Google Cloud Bucket.
- Utilizes GPT-4V Vision to generate Markdown content from pdf an than inserts image urls into markdown.
Installation
The installation process requires Java and Scala. The following instructions are for macOS users:
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk11
brew install jenv
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
After updating your shell configuration, close and reopen your terminal, then set Java 11 as the global version using jenv:
jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/
jenv global 11.0.11
Install GPT PDF Reader via pip:
pip install gptpdfreader
Configure the required environment variables in your .env file without spaces or unnecessary quotes:
OPENAI_API_KEY=open_ai_key
GOOGLE_ID=google_project_id
GOOGLE_BUCKET=google_bucket_name
Usage
To process a PDF and generate Markdown content:
from gptpdfreader.reader import main
main('path_to_your_pdf.pdf')
This will process the specified PDF and output a Markdown file with the extracted information in the same directory.
Limitations
some limitations
Contributing
We welcome contributions! Please open an issue or submit a pull request on our GitHub repository.
Support
For questions and support, please open an issue in the GitHub issue tracker.
License
Metadata
Release files for gpt-pdf-reader 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpt_pdf_reader-1.5.tar.gz | 4.9 kB | Without provenance | Details for gpt_pdf_reader-1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt_pdf_reader-1.5-py3-none-any.whl | Python 3 | none | any | Details for gpt_pdf_reader-1.5-py3-none-any.whl |
Total release size: 10.2 kB
Release files / gpt_pdf_reader-1.5.tar.gz
| Download URL | gpt_pdf_reader-1.5.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9c87b0a27fbd033f4c304b91fbf1671d285b5a8be68ae0ad46af2f8f015dc56
|
|
BLAKE2b-256 checksum How to use checksums |
f3e4e4f469dbb48b8189b2796846bc5a533692be8c1b9d6f4c0e9371f5513c57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / gpt_pdf_reader-1.5-py3-none-any.whl
| Download URL | gpt_pdf_reader-1.5-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7fa44debe137f3b5853ae949d193e8cd1b7452ed8771885db074484da524b43
|
|
BLAKE2b-256 checksum How to use checksums |
e13eaa0bce4131ad564f898b39774bb2a3116b5e0dd4c4a4b309b2fcd02ac3ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for gpt-pdf-reader 1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.