{"id":20058799,"url":"https://github.com/quentinwach/pdftocards","last_synced_at":"2025-09-20T13:31:49.728Z","repository":{"id":216342939,"uuid":"741085314","full_name":"QuentinWach/PDFtoCards","owner":"QuentinWach","description":"Convert any book 📖 or article in PDF form to a deck of flashcards! 📜✍🏻","archived":false,"fork":false,"pushed_at":"2024-01-09T17:18:33.000Z","size":27,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-20T13:56:19.699Z","etag":null,"topics":["anki","anki-deck","anki-flashcards","chatgpt","flashcards","mathpix","study","study-materials"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuentinWach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-09T17:03:57.000Z","updated_at":"2024-10-02T17:22:55.000Z","dependencies_parsed_at":"2024-01-09T18:48:52.399Z","dependency_job_id":null,"html_url":"https://github.com/QuentinWach/PDFtoCards","commit_stats":null,"previous_names":["quentinwach/pdftocards"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FPDFtoCards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FPDFtoCards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FPDFtoCards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FPDFtoCards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuentinWach","download_url":"https://codeload.github.com/QuentinWach/PDFtoCards/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233665637,"owners_count":18710919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anki","anki-deck","anki-flashcards","chatgpt","flashcards","mathpix","study","study-materials"],"created_at":"2024-11-13T13:04:08.338Z","updated_at":"2025-09-20T13:31:44.403Z","avatar_url":"https://github.com/QuentinWach.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PDFtoCards](header_image.jpg)\n\n**Take any book or article in PDF form and convert it to a deck of flashcards!**\n\n* 👀 **Recognizes** text, equations, images, and (some) handwriting.\n* 🧠 **Understands** the content and context of the PDF.\n* ✍🏻 **Summarizes** the PDF as questions and answers systematically.\n* 📕 **Reformats** everything into .txt, ready to be used in quiz programs like Anki!\n\nChatGPT is used for understanding the content and MathPix to extract equations and images.\n\n### ❓ How to use...\n1. After installing these scripts as well as the depencies listed below and getting the required API keys, add these in the ``api_keys.py`` file.\n2. Put the PDF you want to extract flashcards from into this directory, open the ``main.py`` file and change the ``PDF_TITLE = \"this_is_your_pdf.pdf\"`` variable to the name of the PDF.\n3. Run the script!\n\n### 📂 Dependencies\nYou will need to install the following two libraries ``openai``, ``pypdf``, and get API keys for ``ChatGPT``  and ``MathPix``. Beware that using both will cost money. Even large textbooks will only cost a few cent though and the decks will be done in minutes not weeks!\n\n---\nThis is the hacky bare bone version of the software I had written last year trying to add a bunch more features and creating a web app. But I am not a web developer and so eventually lost interest when OpenAI kept releasing more and more cool stuff that made this seem not all that special. I learned a lot about web dev though and if this little thing helped and you like it, come to tell me on [X (formerly Twitter) @quentinwach](https://twitter.com/QuentinWach) 👋🏻.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinwach%2Fpdftocards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinwach%2Fpdftocards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinwach%2Fpdftocards/lists"}