Convert your PDF documents to Markdown notes with KaTeX support with the help of OpenAI.
Project description
Convert your PDF documents to Markdown notes with KaTeX support with the help of OpenAI.
Report Bug
·
Request Feature
·
PyPI
Features
- Takes as INPUT a pdf and transforms it into Markdown with KaTeX using OpenAI.
Installation
You can install pdf2joplin using pip.
pip install pdf2joplin
Usage
If you are using Mac, then you need to install poppler.
brew install poppler
After installing it, you can run it like this:
> pdf2joplin --help
Usage: pdf2joplin [OPTIONS]
Convert your PDF documents to Markdown notes with KaTeX support with the help of OpenAI.
Options:
--version Show the version and exit.
--pdf TEXT The filepath of the PDF that you wish to convert. [required]
--output TEXT The filepath of the final markdown file. [required]
--openai-key TEXT The OpenAI key used to perform the prompt queries. [required]
--skip INTEGER Number of pages to skip.
--help Show this message and exit.
Developing
In order to start developing you will need to to follow the instructions below.
> pyenv install 3.12.6
> pyenv global 3.12.6
> python3 -m venv .venv
> source .venv/bin/activate
> (.venv) pip install ruff pre-commit
> (.venv) pip install -e .
> (.venv) pdf2joplin --version
> (.venv) ruff check --fix
Dependencies
Contributing
Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf2joplin-1.0.1.tar.gz.
File metadata
- Download URL: pdf2joplin-1.0.1.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5eb9987e2f51c188b42a86d5eece43a6117dece25edca66af6def49d0f5fa49
|
|
| MD5 |
9f6bbdaa2b52baa00a319ccb6549c44f
|
|
| BLAKE2b-256 |
729c3278add2111793dfefc0b45b8bb3983809ce9034b5a94ca44f95250fd82d
|
File details
Details for the file pdf2joplin-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pdf2joplin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ce889bdc9a019f993a6376f7b264edebc4c5e9610b049f6f708b45c7d1f35c7
|
|
| MD5 |
dc0aea4f25af389ce864a1ab79e83a72
|
|
| BLAKE2b-256 |
593bd7e117166d339b37557359ea1dfa1bac610ac88a24d46d07fb694183c878
|