Skip to main content

Convert your PDF documents to Markdown notes with KaTeX support with the help of OpenAI.

Project description


Python Linux MacOS Stars Contributors Lint Issues

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.

(back to top)

Installation

You can install pdf2joplin using pip.

pip install pdf2joplin

(back to top)

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.

(back to top)

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

(back to top)

Dependencies

(back to top)

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".

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf2joplin-1.0.0.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf2joplin-1.0.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file pdf2joplin-1.0.0.tar.gz.

File metadata

  • Download URL: pdf2joplin-1.0.0.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pdf2joplin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 441c38c19ea8c840a42452af07623a7a1fd35be0ce86b61210d025ed738b6e16
MD5 2bc91852620c081a446241c2e037eb68
BLAKE2b-256 28aba4bebd2b98ff7d953f206d6faa8e565be131bf45676b42ceae48c65a95b0

See more details on using hashes here.

File details

Details for the file pdf2joplin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pdf2joplin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pdf2joplin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc214c7eaf7e87b86ff19ba72faccd163578cb8614fcd592cbc43e4c505397d
MD5 5c05bcad6f1ba1b5251af13401d0b3db
BLAKE2b-256 365707987fcf5258054c0b5229a6f25855ffc5f2a825946ce9befdc49587c463

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page