PDF Occlusion

AnkiWeb addon 783821131

Creates image occlusion and text cloze cards in bulk from PDF lecture slides, with box drawing, grouping, whole-slide review, and optional web-hosted slide access.
AI-generated summary; may contain mistakes.

card-creationimportreview-flowclozeimage-occlusionmobile-compatible

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
9 (πŸ‘ 7 Β· πŸ‘Ž 2)
Updated
2026-11-23
Anki versions
26.09~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON, YAML
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-27 (4 days before the snapshot).
  • Commits in the last year: 145.
  • Issues: 0 open, 3 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 44 hours (3 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.1026.09+2026-11-23
History across monthly snapshots

Loading…

Similar addons

Description

PDF Occlusion

Turn lecture PDFs into image occlusion cards. Open a PDF, draw boxes over what you want to learn, and make the cards for a whole lecture at once.

  • Every slide in one window, with thumbnails down the side
  • Draw, move, resize, group and rotate boxes; press F to box the text in a region for you
  • Write your own text onto a slide
  • Text cloze cards from a slide's own text
  • Hide All or Hide One, per slide or per box
  • Whole Slide Review: study a whole slide at a time, each box still its own card
  • Slides and Notes buttons on every card open the lecture PDF
  • Open any card from Browse to edit its boxes

Anki 23.10 or later on macOS, Windows and Linux. Shortcuts and settings: github.com/pdf-occlusion/anki-pdf-occlusion

README

PDF Occlusion logo β€Ž β€Ž β€ŽPDF Occlusion

Anki Platform License Website

PDF Occlusion is an Anki add-on that creates image occlusion cards directly from PDF lecture slides. No more importing one image at a time. Open any PDF (or several at once), draw boxes over what you want to memorize, and generate cards in bulk. Built for studying from slide-heavy lectures.

PDF Occlusion

Install

Add-on code 783821131, then restart Anki.

Quick Start

  1. Tools β†’ PDF Occlusion, or Ctrl+Shift+P in the card editor.
  2. Open a PDF with the folder button (Ctrl+O), one file or several. Its menu lists recent sessions.
  3. Drag boxes over what you want to memorize, or press F and drag over a region to have them placed for you. The slides are down the left; a dot marks the ones you have worked on.
  4. Click the lecture title to set the deck, then the purple Create Cards button at the top right.

Shortcuts

Key Action
D / V / T Draw / Select / Text tool
F Detect β€” then drag over the area to scan
P Peek through the masks
G / U Group / ungroup selection
N Note on selected box(es)
Del / Backspace Remove selected box(es)
Esc Clear selection
← / β†’ Slides β€” nudges selected boxes instead
PgUp / PgDn Slides (always)
Ctrl+A Select all boxes on the slide
Ctrl+C / Ctrl+V Copy / paste boxes, across slides too
Ctrl+Z / Ctrl+Shift+Z Undo / redo
Ctrl+ / Ctrl- / Ctrl+0 Zoom in / out / fit
Shift+drag box Move a grouped box's whole group
Shift+draw New box joins the selection's group
Shift+rotate Snap to 15Β°
Pinch / Ctrl+scroll Zoom at the pointer
Ctrl+Shift+V Cloze composer
Ctrl+Shift+C Wrap selection as a cloze
Ctrl+Return File the cloze card
Ctrl+Shift+P Open from the card editor
g While reviewing β€” show all / hide all
Space Whole slide β€” uncover the next box, then mark it right
1 / 3 Whole slide β€” wrong / right

Configuration

Tools β†’ Add-ons β†’ PDF Occlusion β†’ Config

Option Type Default Description
occlusion_mode string "ao" "ao" = Hide All, Show One; "oa" = Hide One, Show One
mask_color RGB [120, 120, 120] Boxes not being tested
highlight_color RGB [131, 110, 170] The box being tested
mask_opacity int 0–255 255 Mask opacity on cards
editing_mask_opacity int 0–255 150 Mask opacity in the editor. At 255 a box hides its content as you draw it; P peeks through
show_all_shortcut string "g" Key that reveals the whole slide while reviewing. "" for none
render_dpi_scale float 2.0 Render resolution β€” higher = sharper cards, more memory
default_zoom "fit" / float "fit" Zoom when a PDF opens
default_deck string "" Deck preselected in the picker
note_type_name string "PDF Occlusion" Note type to create or reuse
add_editor_button bool true Show the toolbar button in the card editor
close_after_creating bool true Close the dialog once cards are created
pdf_hosting object off Publish the Notes / Slides PDFs so the card buttons open on your phone: folder you serve on the web (e.g. a GitHub Pages clone), its base_url, and git_push to commit and push them for you with your own git credentials. Off = cards keep local paths, desktop only. Published PDFs are public

Contact

  • Ravi Bandaru: ravi14.bandaru@gmail.com
  • Johanna Lee: johanna.lee@students.jefferson.edu

License

MIT. See the included LICENSE file.