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.1.tar.gz (44.3 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.1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

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

Hashes for pdf2joplin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d5eb9987e2f51c188b42a86d5eece43a6117dece25edca66af6def49d0f5fa49
MD5 9f6bbdaa2b52baa00a319ccb6549c44f
BLAKE2b-256 729c3278add2111793dfefc0b45b8bb3983809ce9034b5a94ca44f95250fd82d

See more details on using hashes here.

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

Hashes for pdf2joplin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ce889bdc9a019f993a6376f7b264edebc4c5e9610b049f6f708b45c7d1f35c7
MD5 dc0aea4f25af389ce864a1ab79e83a72
BLAKE2b-256 593bd7e117166d339b37557359ea1dfa1bac610ac88a24d46d07fb694183c878

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