Anki add-on: PDF Occlusion

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, draw boxes over what you want to memorize, and generate cards in bulk. Built for studying from slide-heavy lectures. Quick Start Go to Tools -> PDF Occlusion, or use the toolbar button in the card editor ( Ctrl+Shift+P ). Click Open PDF. Click and drag to place boxes over the content you want to memorize, or click Detect Text . (Optional) Select multiple boxes and press G to group them into a single card region. Press Space to mark a slide as skipped. Click Create All Cards. Keyboard Shortcuts Left / Right arrow — Navigate slides Space — Skip / unskip current slide G — Group selected boxes U — Ungroup Del / Backspace — Remove selected box(es) Ctrl+A — Select all boxes on slide Ctrl+Shift+P — Open from card editor Ctrl+ / Ctrl- — Zoom in / out Configuration Tools -> Add-ons -> PDF Occlusion -> Config occlusion_mode — "ao" Hide All, Show One (default) or "oa" Hide One, Show One mask_color — RGB color of the occlusion box on cards (default [46, 120, 217] ) mask_opacity — opacity of the mask rectangle, 0–255 (default 200 ) render_dpi_scale — resolution multiplier for rendered pages; higher = sharper cards, more memory (default 2.0 ) default_zoom — starting zoom level when a PDF opens (default 1.0 ) default_deck — route new cards to a specific deck by name note_type_name — name of the note type to create/reuse (default "PDF Occlusion" ) add_editor_button — show or hide the toolbar button in the card editor close_after_creating — close the dialog automatically after cards are created Notes Requires Anki 2.1.50 or later Works on macOS (Apple Silicon and Intel), Windows (x64), and Linux (x64 and ARM) — the PDF rendering library (pypdfium2) is bundled, no separate install required, on any Anki Python version A PDF Occlusion note type is created automatically on first use Media files are cleaned up automatically when the last card referencing a slide is deleted Compatible with Image Occlusion Enhanced — both add-ons can run in the same profile Source and bug reports: github.com/bananasrlowkeygood/anki-pdf-occlusion

GitHub repository: bananasrlowkeygood/anki-pdf-occlusion
Repository description: Create image occlusion cards directly from PDF lecture slides.
Languages: Python