PDF Highlight Digest · Obsidian plugin documentation

PDF Highlight Digest documentation

PDF Highlight Digest Obsidian plugin preview

PDF Highlight Digest extracts embedded annotations from local PDF files into clean Markdown digest notes inside Obsidian. Extract highlights, underlines, squiggly marks, strikeouts, sticky notes, and free-text notes using a pure TypeScript parser that runs 100% locally on desktop and mobile with zero network requests and zero native binaries. Every extracted passage includes a deep page backlink ([[File.pdf#page=N]]), a named color badge, and a quote callout so you can jump straight back to the source page while reviewing literature notes.

Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.

1 Installation

  1. Open Obsidian Settings, open Community plugins, and select Browse.
  2. Search for PDF Highlight Digest and select Install.
  3. Select Enable to activate the plugin.
  4. For manual installation, copy main.js, manifest.json, and styles.css from the latest GitHub release into <vault>/.obsidian/plugins/pdf-highlight-digest/, then reload Obsidian and enable the plugin.

2 Getting started

Place annotated .pdf files anywhere inside your vault, then extract highlights from the command palette, workbench modal, or file explorer menu.

  1. Open a .pdf file and run Extract highlights from active PDF, or right-click any .pdf file and choose Extract highlights to digest.
  2. Run Open highlight digest workbench to select a PDF, filter by color or annotation type, preview the Markdown, copy it, or create a digest note.
  3. Open the digest note in your output folder (default PDF Digests) and click any [[File.pdf#page=N]] link to jump directly to that page.

With Pro active, run Compile folder literature review (Pro) to merge highlights across a folder and its subfolders grouped by color, topic, author, or file. Add commentary below any &lt;!-- phd:end id="..." --> marker, then run Re-sync digest note preserving commentary (Pro) after updating the PDF to merge changes without overwriting your notes.

3 Features

Local PDF annotation extraction with deep page backlinks

Extract embedded /Highlight, /Underline, /Squiggly, /StrikeOut, /Text sticky-note, and /FreeText annotations directly from local .pdf files in your vault. The parser supports standard PDF 1.0–1.7 indirect objects as well as PDF 1.5+ Flate-compressed /ObjStm object streams and /XRef streams. It decodes literal strings with octal escapes, UTF-16BE hex strings (<FEFF...>), Latin-1 hex strings, and /RC rich-text fallbacks, sorting annotations from top to bottom on each page. Each passage includes a [[Path/File.pdf#page=N]] backlink, a named color badge (Yellow, Green, Blue, Pink, Purple, Orange, Red, or Gray), and an Obsidian quote callout. Re-extracting in free mode writes a numbered copy instead of overwriting existing edits.

Interactive Highlight Digest Workbench

Run Open highlight digest workbench to browse every PDF in your vault, inspect annotations in reading order, and filter by color badge or annotation type before creating a note. Preview the exact Markdown output, copy the filtered digest to your clipboard, or save a digest note directly into your configured output folder. Right-clicking any .pdf file in the file explorer also provides Extract highlights to digest.

Batch folder literature reviews, custom templates, commentary-safe re-sync, and BibTeX metadata (Pro)

Upgrade to Pro to compile highlights across a folder of research PDFs (including nested subfolders) into one literature-review note grouped by color, topic, author, or file. Customize Obsidian callout types and multi-line Markdown templates using template tokens such as {{quote}}, {{page}}, {{link}}, {{color}}, {{type}}, {{author}}, {{date}}, and {{file}}. Re-sync updated PDFs into existing digest notes atomically via vault.process marker blocks (&lt;!-- phd:start id="..." --> and &lt;!-- phd:end id="..." -->) keyed by annotation /NM or bounding box so edited highlights update in place while personal commentary stays intact. Pro also extracts PDF /Info metadata into YAML frontmatter with a citation key and BibTeX block.

4 Commands

Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.

Command Command id
Extract highlights from active PDF pdf-highlight-digest:extract-active-pdf
Open highlight digest workbench pdf-highlight-digest:open-digest-workbench
Compile folder literature review (Pro) pdf-highlight-digest:compile-folder-digest
Re-sync digest note preserving commentary (Pro) pdf-highlight-digest:resync-digest-note

5 Settings

Setting Description Default
Digest output folder Vault folder where digest notes are saved. Leave blank for vault root. PDF Digests
Include sticky notes Include /Text sticky notes and /FreeText annotations. On
Show color badges Display color labels (Yellow, Blue, Green, etc.) in callout headers. On
Batch literature review grouping (Pro) Grouping mode (color, topic, author, or file) for batch folder digests. Color badge
Callout type (Pro) Custom Obsidian callout identifier (quote, note, cite). quote
Custom annotation template (Pro) Multi-line Markdown template with {{callout}}, {{page}}, {{link}}, {{color}}, {{type}}, {{author}}, {{date}}, {{file}}, {{quote_lines}}, and {{quote}}. Default callout
Include BibTeX and YAML metadata (Pro) Extract PDF /Info metadata into YAML frontmatter and a ## BibTeX block. Off

6 Pro

Core PDF annotation parsing, single-file Markdown digest generation with [[File.pdf#page=N]] page backlinks, color badges, quote callouts, and the Highlight Digest Workbench work free with no account. Pro adds four workflows:

Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.

Run What Pro adds to test interactive in-memory demos of all four Pro features before sponsoring.

7 Privacy, payment and network

The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.

One payment turns on Pro in every NoteMods plugin.

GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=pdf-highlight-digest. You need no account for the free features. Pro needs the GitHub account that sponsors.

Until you select "Sign in with GitHub" in the settings, PDF Highlight Digest makes no network requests. Sign in uses the GitHub device flow. PDF Highlight Digest sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.

After sign in, PDF Highlight Digest sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.

After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.

8 Questions and answers

Does PDF Highlight Digest modify my PDF files or overwrite existing notes?

No. PDF reading is strictly read-only. In free mode, re-extracting a PDF whose digest note already exists creates a numbered copy instead of overwriting your edits, and identically named PDFs in different folders are automatically disambiguated.

How does incremental re-sync preserve commentary?

Each annotation is wrapped in &lt;!-- phd:start id="..." --> and &lt;!-- phd:end id="..." --> markers keyed by /NM or bounding box. Running Re-sync digest note preserving commentary (Pro) updates matched blocks atomically via vault.process, keeps every note written below each phd:end marker verbatim, and appends new annotations.

Does it work offline and on mobile?

Yes. The pure TypeScript parser uses zero native binaries and zero network calls on desktop and mobile. The only optional request is the GitHub Sponsors Pro check after you explicitly select "Sign in with GitHub" in Settings.

Why does a highlight sometimes export as [Highlight on page N]?

The parser extracts embedded text stored in PDF /Contents (and /RC rich text) dictionaries, including inside PDF 1.5+ /ObjStm streams. Readers like Zotero, Acrobat, PDF Expert, Skim, and Highlights populate /Contents. Viewers that store only /QuadPoints geometry without /Contents text export a page-linked [Highlight on page N] entry with a clickable [[File.pdf#page=N]] backlink. Encrypted PDFs must be decrypted first.

9 Support

Report bugs or request improvements on GitHub Issues.

PDF Highlight Digest · Obsidian plugin documentation