PDF to notes

AnkiWeb addon 1250587448

1 other version of this addon exists. Compare versions ↓

Converts PDF pages into Anki normal or cloze notes, using each page’s first line as prompt and page images or HTML, with multiple-file, subdeck, scaling, and shortcut options.
AI-generated summary; may contain mistakes.

card-creationimportcloze

Open on AnkiWeb GitHub Forum topic Find alternatives

AnkiWeb

Votes
9 (👍 5 · 👎 4)
Updated
2022-07-24
Anki versions
2.1.66~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2023-05-19 (1262 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 0 closed.
  • Pull requests: 0 open, 0 merged.
  • Forks that may still be maintained: "📥PDF to notes (Fixed by Shigeඞ)" (1660513597).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.462.1.66+2022-07-24
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
PDF to notes this addon original likely abandoned 19 May 2023 👍 5 · 👎 4 27% 6
↳ 📥PDF to notes (Fixed by Shigeඞ) (AI-detected; may be wrong) likely abandoned 6 Apr 2024 👍 2 · 👎 2 15% –

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Description

PDF TO NOTES Using the poppler library (https://poppler.freedesktop.org/) the add-on converts a PDF file into notes. - Question/prompt extracted from each page (the first line of text) - Convert PDF pages to separate "normal" (front/back) notes or separate clozes in a single cloze type note. - PDF pages inserted as images or HTML (using poppler pdftoppm and pdftohtml).

  • PDF file (can be multiple): select file(s) to convert.
  • Deck: Which deck the added note(s) will be inserted into.
  • Note type: Which note type to use for insertion, supports "normal" (front/back) note types as well as cloze note types.
  • Subdeck: If checked a subdeck (with the PDF file name as title) will be created for each file. Note that if note type is a cloze style note there will be one subdeck for each note.
  • Front ("normal" (front/back) note type): Which field to insert the "question" (first line of text in the page) in.
  • Back ("normal" (front/back) note type): Which field to insert the "answer" in.
  • Title field (cloze note type): Which field to insert PDF file name as title (for note types, such as the built-in cloze, that do not have a suitable field for this, select <none>).
  • Cloze field (cloze note type): Which field to insert clozes into. Clozes are inserted as prompt: {{c1:: answer}} where prompt is the first line of text extracted from the page and answer is either an image of the page or a
    with the page HTML.
  • Format: Format to insert the pages in, either as images (will preserve exact layout and work well on all screen sizes but no editable/selectable text) or HTML (does not give perfect results on any screen, especially not small screens but text can be copied/edited).
  • Configurable keyboard shortcut (default Ctrl+Alt+P) to open dialog from main window
  • Fit width/height: output will be scaled proportionally to fit inside the specified box (0 means not constraint in that direction, i.e. 0 x 0 means no scaling and 600 x 0 means output will be 600 px wide and height scaled proportionally).
  • Return will select the current item (same as space) whereas Ctrl+Return will start the import and Escape will cancel the dialog.
  • https://github.com/TRIAEIOU/PDF-to-notes
Installation
  • Windows binaries of poppler are packaged in the addon (https://github.com/oschwartz10612/poppler-windows).
  • On many Linux installations it is included in the default install, otherwise install with a package manger, for instance apt: sudo apt install poppler-utils.
  • On macOS it can be installed with the homebrew package manager: brew install poppler (untested as I don't have access to a Mac).
Changelog
  • 2022-01-01: Prepare code for Anki Qt5 to Qt6 transition.
  • 2022-01-31: Add keyboard shortcut to open dialog from main window. Add option to scale output. Make keyboard input more intuitive. Allow multiple PDF file selection.
  • 2022-02-06: Bug fix on PDF to image and no scaling.
  • 2022-02-11: Added option to create subdeck for each PDF file.
  • 2022-05-13: Fixed shortcut bug.
  • 2022-05-18: Bug fixes.

README

PDF to notes

Using the poppler library (https://poppler.freedesktop.org/) the add-on converts a PDF file into notes.

  • Question/prompt extracted from each page (the first line of text)
  • Convert PDF pages to separate "normal" (front/back) notes or separate clozes in a single cloze type note.
  • PDF pages inserted as images or HTML (using poppler pdftoppm and pdftohtml).
  • PDF file (can be multiple): select file(s) to convert.
  • Deck: Which deck the added note(s) will be inserted into.
  • Note type: Which note type to use for insertion, supports "normal" (front/back) note types as well as cloze note types.
  • Subdeck: If checked a subdeck (with the PDF file name as title) will be created for each file. Note that if note type is a cloze style note there will be one subdeck for each note.
  • Front ("normal" (front/back) note type): Which field to insert the "question" (first line of text in the page) in.
  • Back ("normal" (front/back) note type): Which field to insert the "answer" in.
  • Title field (cloze note type): Which field to insert PDF file name as title (for note types, such as the built-in cloze, that do not have a suitable field for this, select
  • Cloze field (cloze note type): Which field to insert clozes into. Clozes are inserted as prompt: {{c1::
    answer}}
    where prompt is the first line of text extracted from the page and answer is either an image of the page or a
    with the page HTML.
  • Format: Format to insert the pages in, either as images (will preserve exact layout and work well on all screen sizes but no editable/selectable text) or HTML (does not give perfect results on any screen, especially not small screens but text can be copied/edited).
  • Configurable keyboard shortcut (default Ctrl+Alt+P) to open dialog from main window
  • Fit width/height: output will be scaled proportionally to fit inside the specified box (0 means not constraint in that direction, i.e. 0 x 0 means no scaling and 600 x 0 means output will be 600 px wide and height scaled proportionally).
  • Return will select the current item (same as space) whereas Ctrl+Return will start the import and Escape will cancel the dialog.
  • https://github.com/TRIAEIOU/PDF-to-notes

Installation

  • Windows binaries of poppler are packaged in the addon (https://github.com/oschwartz10612/poppler-windows).
  • On many Linux installations it is included in the default install, otherwise install with a package manger, for instance apt: sudo apt install poppler-utils.
  • On macOS it can be installed with the homebrew package manager: brew install poppler (untested as I don't have access to a Mac).

Changelog

  • 2022-01-01: Prepare code for Anki Qt5 to Qt6 transition.
  • 2022-01-31: Add keyboard shortcut to open dialog from main window. Add option to scale output. Make keyboard input more intuitive. Allow multiple PDF file selection.
  • 2022-02-06: Bug fix on PDF to image and no scaling.
  • 2022-02-11: Added option to create subdeck for each PDF file.
  • 2022-05-13: Fixed shortcut bug.
  • 2022-05-18: Bug fixes.