Annotator

by Elias Sundqvist
5
4
3
2
1
Score: 64/100

Description

The Annotator plugin allows users to open and annotate PDF and EPUB files within Obsidian. It enables storing annotations locally in markdown files, maintaining a structured workflow without relying on external services. Users can highlight text, add comments, and link annotations directly to their notes for better organization. The plugin supports dark mode, provides an option to toggle between annotation and markdown modes, and integrates with the Dataview plugin for enhanced querying capabilities. Annotations are easily accessible via Obsidian links, ensuring smooth navigation between notes and files.

Reviews

No reviews yet.

Stats

1734
stars
567,715
downloads
82
forks
1,711
days
852
days
853
days
19
total PRs
2
open PRs
2
closed PRs
15
merged PRs
395
total issues
272
open issues
123
closed issues
3
commits

Latest Version

2 years ago

Changelog

0.2.11 (2024-01-06)

  • Fix issue with rendering annotator in Obsidian 1.5.3 and later (See issue #356)

README file from

Github

GitHub release (latest SemVer) GitHub All Releases

Obsidian Annotator

This is a plugin for Obsidian (https://obsidian.md). It allows you to open and annotate PDF and EPUB files.

The plugin is based on https://web.hypothes.is/, but modified to store the annotations in a local markdown file instead of on the internet.

Demonstration

annotator demo

Warning! In the above gif I use Dataview syntax to specify the annotation-target. If you do not have the dataview plugin installed, you must instead write the annotation-target in the frontmatter, like this:

---
annotation-target: https://arxiv.org/pdf/2104.13478.pdf
---

Known issues

  1. Plugin doesn't work on iOS 16.3 or higher. Follow #289 issue state up to date.
  2. Reader doesn't show annotations if they were changed on different platforms.

Getting Started

Add the property annotation-target to the frontmatter of your obsidian note, with a value corresponding to the location of the EPUB/PDF file. The location can either be a file in the vault (such as Pdfs/mypdf.pdf), or online (such as https://arxiv.org/pdf/2104.13478.pdf)

Then you can, in the open note pane, select "more options" (the three dots in the top right), and a new option "annotate" should be available.

The plugin automatically tries to determine whether the file is an epub or pdf based on the file path, but in case this doesn't work, you can also add the property annotation-target-type and specify whether it is epub or pdf manually.

If you have dataview installed, then you can also specify the annotation target with a dataview attribute. In this case, obsidian-style links can be used instead of a plain-text path.

WARNING! Don't rename an original pdf or epub file! The plugin is going to lose the connection between annotations and file in that case.

Annotating

Annotation is self-explanatory. Select text with your mouse to get started.

In the future, it would be nice to add colored highlights and image/region highlights. These features will have to be added to hypothes.is first, however. See these relevant issues: https://github.com/hypothesis/product-backlog/issues/198, https://github.com/hypothesis/product-backlog/issues/669

The annotations in markdown

To return to the regular obsidian markdown editing mode, you can select more optionsOpen as MD. Each annotation has an associated quote block with a block reference. Be careful with modifying these blocks. Minor edits to PREFIX, HIGHLIGHT, and POSTFIX are typically ok. But if the edits are too major, hypothesis may no longer be able to identify the corresponding text.

The COMMENT region can be freely edited. (but ensure that it is still part of the quote block.)

The TAGS region should consist of a comma-separated list of obsidian tags. (like #tag1, #tag2, #tag3)

Dark Mode

The plugin has built-in dark mode support. To toggle dark mode, select more optionsToggle Dark Mode while annotating. You can also tweak the dark mode behavior in the settings tab for the plugin.

Linking to annotations

An obsidian link to an annotation block-reference will, when clicked, open the corresponding file and scroll to the associated highlight. If the file is already open in a pane, then the link will cause the existing pane to scroll instead.

Contributing

Visit CONTRIBUTING.md for information on building from source or contribution improvements. To report a bug, ask a question or suggest an improvement for this plugin, you can create an issue.

Changelog

0.2.11 (2024-01-06)

  • Fix issue with rendering annotator in Obsidian 1.5.3 and later (See issue #356)

0.2.10 (2023-01-09)

  • Fix bug #284 Plugin didn't start on iOS

0.2.9 (2023-01-05)

  • Click on annotation link in markdown causes an immediate jump to annotation in PDF (Thanks to @HardwayLinka)
  • Fix broken drag-and-dropped link to highlight caused by line breaks. (See issue #267, Thanks to @HardwayLinka)

0.2.8 (2022-11-27)

  • Fixed issue with "Annotate" button not appearing (See issue #253)
  • Fixed issue with scroll getting stuck after clicking annotation link (See PR #259, Thanks to @HardwayLinka for the contribution)
  • Partially fixed issue with annotation links not working (See PR #231, Thanks to @XSAM for the contribution)

0.2.7 (2022-10-31)

  • Fixed issue with Latex Equations not rendering in annotations (See issue #228)
  • Removed "sign-in/log-in" buttons (See issue #241)
  • CSS Snippets can now be used to style the hypothesis sidebar

0.2.6 (2022-08-19)

  • Fix bug #208 introduced in 0.2.5 It was impossible to open an internal link because of the plugin

  • Internal changes

    • Use dataview package to communicate with dataview plugin

0.2.5 (2022-08-14)

  • Move buttons 'Annotate', 'Toggle Dark Mode', 'Open as Markdown' to top of options menu

  • Video annotation

  • Internal changes

    • CodeMirror updated to v6
    • obsidian-api updated to 0.15.9
    • betterer was installed with strict typing settings to make plugin more stable and reliable in a future

0.2.4 (2022-07-23)

0.2.2 (2022-05-14) Minor improvement

  • hypothes.is updated up to v1.1055.0

0.2.1 (2022-03-06) BRAT release Basic web and video annotation

  • annotation-target-type can now take on the values web and video.
    • With web the annotation target can (in theory) be any website. Some work better than others. Link navigation does not work.
    • With video, only youtube links are supported. In order to use this feature, a link to a zip file with the annotator.tv resources must be provided in the plugin settings. It cannot be bundled with the plugin since that would most likely violate copyright.
    • Other improvements:
      • Some behind-the-scenes changes have been made so that the hypothes.is version can be more easily upgraded in the future.

0.2.0 (2022-01-26) BRAT release Improved markdown rendering, epub reader

  • Markdown in the hypothesis sidebar should now fully support the regular obsidian syntax. (including links, embeds, custom codeblocks etc.)
  • Several Epub improvements, Thanks to @aladmit for these!
    • New option added for font size scaling (See PR #127)
    • New "epub reader mode" setting added. Infinite scrolling is now supported! (See PR #114)
    • Reduced page padding so that maximum available space is used. (See PR #126)

0.1.9 (2022-01-17) Minor fix

  • Removed sentry logging, again, (See issue #97)

0.1.8 (2022-01-16) Minor fixes, added default annotation mode setting

  • Fixed issue with pane loading on startup
  • Fixed some issues with epub highlighting
  • Added setting to choose default annotation mode, Thanks to @aladmit for the PR! (See PR #113)

0.1.7 (2022-01-14) BRAT release chinese file name support

  • Fixed issue with chinese file names, as discussed in issue #53

0.1.6 (2022-01-12) BRAT release Live Preview Drag and Drop fix + chinese character support

  • Drag and drop should now work in live preview (See issue #103)
  • Upgraded pdf.js to a newer version.
    • Improved character support. (Japanese and Chinese letters should now work), (See issue #53)
  • Removed sentry logging (See issue #97)

0.1.5 (2021-12-19) Quick fix

  • Apparently the previous update broke some of the old annotations for some people (See issue #95). This version hopefully fixes that.

0.1.4 (2021-12-18) Fix Issue With Ipad + Windows/Android compatibility.

  • See issue #70, Thanks to @jonasmerlin for the fix!

0.1.3 (2021-09-12) Basic CORS support for desktop

  • Added a basic workaround for CORS issues. This should make more links possible to view. (See issue #15)
    • Note that this workaround only works on the desktop version of obsidian.

0.1.2 (2021-09-11) Quick Fix

  • Fixed critical bug that prevented any annotations from being saved. (See issue #61)
  • Drag and drop has been improved. The drop handlers are now unloaded when the plugin is unloaded. The issues regarding interferrence with other Drag and Drop functionality are hopefully also resolved. (See Issue #50)
  • Using an array format for the annotation target should now work. This improves compatibility with MetaEdit (See Issue #51)
  • Holding ctrl and clicking links (or clicking with the mouse-wheel) now opens annotations in a new pane. (See Issue #54)
  • Issue with multi-line comments should be resolved. (See Issue #47)
  • A new command (`Toggle Annotation/Markdown mode) has been added. This can be bound to a hotkey in obsidian, enabling more efficient switching between the two modes. (See issue #39)
  • Other things
    • A basic unit-test for annotation loading has also been added. More tests will be added as issues arise. This will guarantee that the plugin becomes increasingly stable over time.

0.1.0 (2021-09-03) Added annotation highlight drag and drop

  • By holding the shift key you can now drag highlights from the epub/pdf into a separate Obsidian note, and a link to the highlight will be inserted. highlight drag and drop

0.0.9 (2021-09-03) Quick fix for annotation id bug

  • See #37

0.0.8 (2021-09-03) Added Pre/Postfix setting toggles, Fixed scrolling issue, More size reductions.

  • The plugin is now available in the community plugins list!
  • The Pre- and Postfix parts of the annotation markdown can now be disabled in the settings. (See #30)
  • Clicking a PDF annotation link now causes an immediate jump to the annotation. No more glitchy scrolling. (See #21)
  • Potential fix to the memory leak mentioned in #28 added.
  • Added core-js. Will hopefully mean that the plugin works with older versions of node (see #34)
  • Disabled global WebSocket override. Should resolve issues with Obsidian Sync (see #36)
  • Further size reductions of the plugin
    • React is now built in 'production' mode.
    • All the embedded resources now use the highest zip compression ratio.

0.0.7 (2021-09-01) Added Custom Default Path setting, Page notes fix, Slight JSON size reduction, etc.

  • Added a new setting called Custom Default Path. See this comment on #19 for more info.
  • Top-level values in the annotation JSON will now be ommited if their values are "unsurprising". See #24
  • Fixed page notes breaking the loading of annotations.
  • Made the Post to... button always say Post to Only Me to reduce privacy confusion.
  • Further reduced plugin size
    • Switched from base64 to full unicode encoding
    • Added minimization of resources before zip generation
    • Added minimization of final rollup output
  • Minor fixes
    • Removed warning about websocket userid mismatch
    • Added possible fix to #13

0.0.6 (2021-08-30) file: protocol support, various url fixes, privacy improvements, minor fixes

  • Fixed so that no initial http request is made to the hypothes.is servers.
  • Hypothes.is performance trackers removed.
  • No more error messages from the websocket api.
  • The stored annotations no longer reference the sample pdf url, since that confused some users. (See issue #7)
  • Initial support for file: protocol links added. (Has not been tested much yet.)
  • The placeholder staus bar text has been removed (See issue #17)

0.0.5 (2021-08-26) Fixed EPUB bug, minor file restructuring

  • The files necessary for the epub reader were .gitignored, which prevented it from working in the previous releases. (See issue #6)
  • The code files has been moved to the src directiory so that the repo looks a bit less messy.

0.0.4 (2021-08-26) Chinese File name support

  • Added support for chinese file names. (See issue #4)

0.0.3 (2021-08-26) Plugin Size Reduction

  • Removed some unnecessary files to reduce plugin size.

0.0.2 (2021-08-26) Minor fixes

  • Removed logging,
  • Simplified link handling
  • viewer height is now 100% instead of fixed to 1000px.

0.0.1 (2021-08-25) First Release

  • Basic functionality of the plugin implemented

License

Note: The files under the resources folder are scraped from the web. Each website has its licence file attached in the associated folder.

Obsidian Annotator is licensed under the GNU AGPLv3 license. Refer to LICENSE for more information.

Support

If you want to support me and my work, you can sponsor me on Github (preferred method) or donate something on Paypal.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Omnisearch
4 years ago by Simon Cambier
A search engine that "just works" for Obsidian. Supports OCR and PDF indexing.
Highlightr
4 years ago by Chetachi
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
PDF++
2 years ago by Ryota Ushio
PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.
Markmind
5 years ago by Mark
A mind map, outline for obsidian,It support mobile and desktop
Pandoc
5 years ago by Oliver Balfour
Pandoc document export plugin for Obsidian (https://obsidian.md)
Image Converter
3 years ago by xRyul
⚡️ Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align images directly in Obsidian. Drag-resize, rename with variables, batch process. WEBP, JPG, PNG, HEIC, TIF.
Obsidian Enhancing Export
4 years ago by YISH
This is an enhancing export plugin base on Pandoc for Obsidian (https://obsidian.md/ ). It's allow you to export to formats like Markdown、Markdown (Hugo https://gohugo.io/ )、Html、docx、Latex etc.
Text Extractor
3 years ago by Simon Cambier
A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.
Better Export PDF
2 years ago by l1xnan
Obsidian PDF export enhancement plugin
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
PDF Highlights
5 years ago by Alexis Rondeau
Extract highlights, underlines and annotations from your PDFs into Obsidian
Better PDF
5 years ago by MSzturc
Goal of this Plugin in to implement a native PDF handling workflow in Obsidian
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
ePub Reader
4 years ago by caronchen
An ePub reader plugin for Obsidian.
Raindrop Highlights
4 years ago by kaiiiz
An Obsidian.md plugin that syncs highlights from Raindrop.
Timestamp Notes
4 years ago by Julian Grunauer
This plugin allows side-by-side notetaking with videos. Annotate your notes with timestamps to directly control the video and remember where each note comes from.
Extract PDF Annotations
4 years ago by Franz Achermann
This is a plugin for https://obsidian.md. It extracts Annotations from PDF Files.
Note Definitions
2 years ago by Dominic Let
Obsidian plugin for seamless viewing of personal definitions
Marker PDF to MD
2 years ago by L3N0X
Make use of different AI models to convert your pdfs into markdown with perfect ocr, latex formulas, tables, images and more! Supports Mistral AI OCR (free) and self hosted variants!
Enhanced Annotations
2 years ago by ycnmhd
Hypothes.is
5 years ago by weichenw
An Obsidian.md plugin that syncs highlights from Hypothesis.
PDF break page
2 years ago by CG
Plugin for obsidian that adding shortcuts to create breakpages for pdf exports.
ibook
3 years ago by bingryan
export mac ibook annotations/hightlights to obsidian vault
Awesome Reader
3 years ago by AwesomeDog
Make Obsidian a proper Reader.
Slide Note
3 years ago by Jinyan Xu
Kindle Export
4 years ago by Simeon Stanek
A plugin which converts .md files from Obsidian to your Kindle/PocketBook
Xournal++
2 years ago by Jon Jampen
Obsidian plugin that seamlessly integrates Xournal++ for handwritten notes and annotations.
Keyword Highlighter
2 years ago by Marcel Goldammer
Automatically highlight specified keywords within your Obsidian notes for enhanced visibility and quick reference.
HiWords
7 months ago by Kai
Effortlessly grow your vocabulary as you read, with automatic highlighting and translation of unfamiliar words.
Cubox
a year ago by delphi-2015
Cubox Official Obsidian Plugin
Always Color Text
8 months ago by Kazi Aidah Haque
Automatically colors texts across the Obsidian Vault!
Media Slider
a year ago by Aditya Amatya
An obsidian plugin that helps to make slider for images, audios, videos, pdfs, markdown, etc in obsidian notes.
Extended Markdown Syntax
a year ago by Kotaindah55
Extend your Markdown syntax using delimiters instead of HTML tags, such as underlining, superscript, subscript, highlighting, and spoiler.
LLM Summary
2 years ago by QSun
wip
Note Annotations
a year ago by Jan Beck
Occura
2 years ago by Alexey Sedoykin
Plugin for https://obsidian.md/ that automatically selected same text occurrences in opened note
Onyx Boox Annotation & Highlight Extractor
4 years ago by Akos Balasko
This tool extracts the highlights and the annotations from OnyxBoox Reading Notes txt files, and converts them to linked zettelkasten literature and permanent notes
SwiftLaTeX Render
2 years ago by gboyd068
Air Quotes
3 years ago by Alan Grainger
Plugin for Obsidian. Search and insert quotes from a source text as you type. This is great for reading a physical book or eReader while taking notes on a separate laptop or phone.
BookFusion
2 years ago by BookFusion
BookFusion Obsidian Plugin
Interlinear Glossing
3 years ago by Mijyuoon
An Obsidian plugin for interlinear glosses used in linguistics texts.
Code Preview
3 years ago by Hank
Obsidian code block render by file path
GDScript Syntax Highlighting
2 years ago by RobTheFiveNine
Adds live GDScript syntax highlighting to code blocks in the Obsidian editor.
Plugins Annotations
2 years ago by Andrea Alberti
Obsidian plugin that allows adding personal comments to each installed plugin.
PDF Folder to Markdowns
a year ago by CrisHood
Convert a folder of PDFs into a folder of Markdown files with embedded PDFs. This plugin is useful for users who want to migrate their PDF notes from different apps (e.g., Boox) or organize their reference materials inside Obsidian.
Sentence Rhythm
a year ago by Adam Fletcher
Obsidian plugin added toggleable colored highlights to sentences based on their length
PDF Writer
a year ago by Jobelin Kom
Obsidian plugin To write and fill a PDF
SideNote
5 months ago by mofukuru
Obsidian plugin: Add comment on the part of sentence and refer in comment view.
PDF Paste
a year ago by Cormac
Paperless
a year ago by Talal Abou Haiba
Annotate Audio
a year ago by VidE
PDF2Image
2 years ago by RasmusAChr
Handwriting OCR
9 months ago by ikmolbo
Transform handwritten documents and scanned images into editable text with Handwriting OCR's AI-powered handwriting to text conversion.
downloadPDF
2 years ago by Frieda
BibDesk Integration
a year ago by Andrea Alberti
Integration of Obsidian with bibtex files
Readeck Importer
a year ago by Makebit
Import bookmarks from Readeck to Obsidian
Feedly Annotations Sync
a year ago by Nick Felker
Download my Feedly annotations
Long sentence highlighter
8 months ago by Robert Meißner
ShaahMaat-md
a year ago by Mihail Kovachev