Repository navigation
Releases
Theme Toggle v1.1.4
Theme Toggle v1.1.4 — Release Report
| Release tag | theme-toggle-v1.1.4 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | 20be7afab06768a5e6c6e8b09ad7ee48b009601d2a7a20b597f1926ea9059c5f |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Version 1.1.4 removes the Tools menu entry. The plugin now has exactly two
triggers: the toolbar button left of the sync button, and Ctrl/Cmd+Shift+D.
Both switch Zotero's native light/dark color scheme instantly.
Why the menu entry was removed
The menu item never got its icon to render reliably in Zotero 10's dark Tools
menu, despite being registered through Zotero.MenuManager with both icon and
darkIcon. The extra entry point was not needed anyway — the toolbar button and
the shortcut cover the workflow — so the menu integration was removed instead of
keeping a half-styled item.
Changing in this release
- Removed
Zotero.MenuManager.registerMenu()/unregisterMenu()and all
menu-related code frombootstrap.js. - Removed the menu-only FTL strings; only the two toolbar tooltips remain.
- Updated the manifest description, plugin README and root README to describe the
two remaining triggers. - Logo and toolbar icons unchanged from 1.1.3.
Verification performed
- Build —
./scripts/build.shproducesdist/theme-toggle-1.1.4.xpi
(5,194 bytes), withmanifest.jsonat the archive root. - Live upgrade — installed over 1.1.3 through
AddonManager.getInstallForFile(...).install()in a running Zotero 10.0.8.
The add-on reports version1.1.4, state active, no restart required. - Menu removal — a runtime scan of
#menu_ToolsPopupfound 0 nodes whose
id,data-l10n-idor class mentionstheme-toggle. - Remaining entries —
#zotero-tb-theme-toggleexists immediately before
#zotero-tb-sync,window.__themeToggleKeyHandleris registered, and the
plugin FTL file is loaded in the main window. - Toggle logic — unchanged from 1.1.3, where the button and shortcut were
verified to flipbrowser.theme.toolbar-theme0 ↔ 1with an immediate
repaint. 1.1.4 only deletes the menu path. - Checksum — the published artifact's SHA-256 matches the locally built file.
Runtime check result after the live upgrade:
{"v":"1.1.4","a":true,"b":true,"k":true,"m":0,"f":1}v version, a active, b toolbar button present, k key handler present,
m theme-toggle nodes in the Tools menu, f FTL links in the main window.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. Existing installations are upgraded in place; no restart.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package |
Source code for this release is available at tag
theme-toggle-v1.1.4.
Theme Toggle v1.1.3
Theme Toggle v1.1.3 — Release Report
| Release tag | theme-toggle-v1.1.3 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | a931e9e33f94cb8f4ba86df3a8e5e6edc9edfa812903ce7cc13ff500a6a52a96 |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Version 1.1.3 tunes the logo: the diagonal / is now thinner and 50 % transparent,
and the sun and moon are slightly larger while keeping comfortable spacing. Plugin
behaviour is unchanged from 1.1.2.
Changing in this release
- Diagonal slash: stroke width
1.5 → 1.0,stroke-opacity: 0.5, so it reads as a
subtle separator instead of a strong element. - Sun and moon glyph boxes:
5.6 → 6.4(≈ +14 %), still equal size, still using the
stock toolbar glyph shapes (moon upright and unmirrored). - Everything else unchanged: rounded-square badge, palette, toolbar button,
Ctrl/Cmd+Shift+D, Tools menu entry with the logo in front of the label.
Logo design notes
- Container: rounded square, 21.6 units across, 5.6 corner radius, fill
#2E3A59. - Diagonal:
/from the lower-left to the upper-right,#E8ECF5, width 1,
50 % opacity. - Sun: upper-left,
#F6A623; moon: lower-right,#8FB6FF; both 6.4 × 6.4 boxes. - Verified by rendering the SVG at 16 / 24 / 32 / 48 / 64 / 96 / 128 px on light and
dark backgrounds.
Verification performed
- Build —
./scripts/build.shproducesdist/theme-toggle-1.1.3.xpiwith
manifest.jsonat the archive root. - Install — installed over 1.1.2 in a live Zotero 10.0.8; the add-on reports
version1.1.3, state active, no restart required. - Menu item — the Tools popup entry still renders as an iconic item with the
plugin logo before the label. - Regression — toolbar button, shortcut and menu command still toggle
browser.theme.toolbar-theme0 ↔ 1with an immediate UI repaint. - Checksum — the published artifact's SHA-256 matches the locally built file.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. Existing installations are upgraded in place; no restart.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package |
Source code for this release is available at tag
theme-toggle-v1.1.3.
Theme Toggle v1.1.2
Theme Toggle v1.1.2 — Release Report
| Release tag | theme-toggle-v1.1.2 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | a37ef4f861cf51730f4e2caaa1607c543614a165030747dcebac1575aca16c9c |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Version 1.1.2 puts the plugin logo in front of the Tools menu label, the same way
other Zotero plugins present their menu entries. Plugin behaviour is unchanged from
1.1.1.
Changing in this release
- The
Zotero.MenuManagerregistration for Tools → Toggle Light/Dark Mode now
passesiconanddarkIconpointing at
chrome://theme-toggle/content/icons/logo.svg, so the menu item is rendered as an
“iconic” item with the plugin logo before the label (in both light and dark UI). - Toolbar button and keyboard shortcut are unchanged (they were already correct).
Verification performed
- Build —
./scripts/build.shproducesdist/theme-toggle-1.1.2.xpiwith
manifest.jsonat the archive root. - Install — installed over 1.1.1 in a live Zotero 10.0.8; the add-on reports
version1.1.2, state active, no restart required. - Menu item — after the plugin starts, the Tools popup contains a custom
menuitemwith themenuitem-iconicclass and the icon CSS variables
(--custom-menu-icon-light/--custom-menu-icon-dark) set to
chrome://theme-toggle/content/icons/logo.svg. - Regression — toolbar button,
Ctrl/Cmd+Shift+Dshortcut and the menu command
itself still togglebrowser.theme.toolbar-theme0 ↔ 1with an immediate UI
repaint. - Checksum — the published artifact's SHA-256 matches the locally built file.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. Existing installations are upgraded in place; no restart.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package |
Source code for this release is available at tag
theme-toggle-v1.1.2.
Theme Toggle v1.1.1
Theme Toggle v1.1.1 — Release Report
| Release tag | theme-toggle-v1.1.1 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | adc83b229f1ad0d2dce68063fa139598b18f866a1e542d5fa5e6fc13535e4c7c |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Version 1.1.1 redraws the plugin logo. It is now a rounded square with a diagonal
/ slash, the sun in the upper-left area and the crescent moon in the
lower-right area — the structure requested for the mark. Plugin behaviour is
unchanged from 1.1.0.
Changing in this release
- New logo —
chrome/content/icons/logo.svg:
rounded square badge, diagonal slash, sun upper-left, moon lower-right. - Manifest icons still point to
logo.svg(48 px / 96 px entries), so the mark
is what Zotero shows next to “Theme Toggle” in the Plugins Manager. - README shows the logo at the top; the size preview lives at
docs/images/theme-toggle-logo-preview.png. - Toolbar icons are unchanged:
sun.svg/moon.svgstay monochrome (theme-tinted
viacontext-fill) because they indicate the action a click performs.
Logo design notes
- Container: rounded square (20.8 units across with an 5.6 corner radius, filled
#2E3A59) on a 24 × 24 grid. - Diagonal:
/from the lower-left to the upper-right corner area, stroke#E8ECF5. - Sun: upper-left, glyph identical in shape to the toolbar sun icon,
#F6A623. - Moon: lower-right, the stock crescent glyph (upright, not mirrored, not
rotated),#8FB6FF. - Sun and moon occupy identical 5.6 × 5.6 boxes, so neither dominates.
- The filled badge keeps the mark readable on both light and dark UI backgrounds
(Zotero's Plugins Manager uses a dark card in dark mode). - Verified by rendering the SVG at 16 / 24 / 32 / 48 / 64 / 96 / 128 px on light and
dark backgrounds before release.
Verification performed
- Build —
./scripts/build.shproducesdist/theme-toggle-1.1.1.xpiwith
manifest.jsonat the archive root;logo.svgis included. - Install — installed in a live Zotero 10.0.8 through the Plugins Manager
(gear → Install Plugin From File…); the add-on reports version1.1.1, state
active, no restart required. - Icon — the new rounded-square logo is rendered by Zotero next to
“Theme Toggle” in the Plugins Manager. - Regression — toolbar button,
Ctrl/Cmd+Shift+Dshortcut and the Tools menu
entry still work; toggling still switchesbrowser.theme.toolbar-theme0 ↔ 1
and the UI repaints immediately. - Checksum — the published artifact's SHA-256 matches the locally built file.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. Existing installations are upgraded in place; no restart.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package |
Source code for this release is available at tag
theme-toggle-v1.1.1.
Theme Toggle v1.1.0
Theme Toggle v1.1.0 — Release Report
| Release tag | theme-toggle-v1.1.0 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | 44cfa3d21031bae9a84e3fa72a1713f36590bcb96a46ddc925c2dd57d61c78a5 |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Version 1.1.0 gives the plugin a proper logo — a capsule (toggle) outline with a
sun on the left, a slash in the middle and a crescent moon on the right — and uses it
as the add-on icon shown in Zotero's Plugins Manager. Functionality is unchanged
from 1.0.2.
Changing in this release
- New logo —
chrome/content/icons/logo.svg: reads as
“☀ / ☾ inside a toggle pill”, i.e. exactly what the plugin does. - Manifest icons now point to
logo.svg(48 px / 96 px entries), so the logo
appears next to “Theme Toggle” in the Plugins Manager and on its detail page. - README shows the logo at the top; a size preview is kept in
docs/images/theme-toggle-logo-preview.png. - Toolbar icons are intentionally unchanged:
sun.svg/moon.svgremain monochrome
(theme-tinted viacontext-fill) because they indicate the action a click
performs, while the logo identifies the plugin.
Logo design notes
- Geometry: a 22.2 × 13.2 capsule on a 24 × 24 grid; sun on the left,
/slash in
the middle, crescent moon on the right. - The sun and the moon occupy equal 6.0 × 6.0 boxes — neither is larger than the
other — and both reuse the glyph shapes already used by the plugin's toolbar icons.
Elements are kept compact inside the capsule (≈1 px end padding, ≈2 px gaps around
the slash) so the mark does not look crowded. - The moon keeps the stock crescent orientation (horns towards the top-right): it is
not mirrored and not rotated. - Palette: sun
#F6A623, moon#5B8DEF, capsule and slash#7C879E— three flat
colours, no gradients, chosen so the mark stays visible on both light and dark
backgrounds (Zotero's Plugins Manager uses a dark card in dark mode). - Verified by rendering the SVG at 16 / 24 / 32 / 48 / 64 / 96 / 128 px on light and
dark backgrounds before release.
Verification performed
- Build —
./scripts/build.shproducesdist/theme-toggle-1.1.0.xpiwith
manifest.jsonat the archive root;logo.svgis included. - Install — installed in a live Zotero 10.0.8 through the Plugins Manager
(gear → Install Plugin From File…); the add-on reports version1.1.0, state
active, no restart required. - Icon — the capsule logo is rendered by Zotero next to “Theme Toggle” in the
Plugins Manager (checked in both light and dark UI). - Regression — toolbar button,
Ctrl/Cmd+Shift+Dshortcut and the Tools menu
entry still work; toggling still switchesbrowser.theme.toolbar-theme0 ↔ 1
and the UI repaints immediately. - Checksum — the published artifact's SHA-256 matches the locally built file.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. Existing installations of 1.0.x are upgraded in place; no restart.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package |
Source code for this release is available at tag
theme-toggle-v1.1.0.
Theme Toggle v1.0.2
Theme Toggle v1.0.2 — Release Report
| Release tag | theme-toggle-v1.0.2 |
| Release date | 2026-11-19 |
| Plugin ID | theme-toggle@local |
| Artifact | theme-toggle.xpi |
| SHA-256 | 4288628b9f22f48acd0b94670ad607ba8589ff5b60a4aaa73778ebde0b1831c7 |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
Theme Toggle is a tiny Zotero plugin that exposes Zotero's own light/dark color
scheme switch outside the Settings window. It does not ship a theme: it only writes
Zotero's native preference browser.theme.toolbar-theme (0 = Dark, 1 = Light,
2 = Follow system), so the resulting look is identical to picking Light/Dark under
Settings → General → Color Scheme — but reachable in one click or one keystroke,
and applied instantly without restarting Zotero.
This is the first public release and the first artifact published from the
zotero-plugin repository.
What's included in 1.0.2
- Toolbar button — a sun/moon icon in the top toolbar, immediately left of the
sync button; the icon reflects the action it will perform (sun = switch to light). - Keyboard shortcut —
Ctrl+Shift+Don Windows/Linux,Cmd+Shift+Don macOS. - Tools menu entry — Toggle Light/Dark Mode (localized: 切换深色/浅色模式).
- Localization —
en-USandzh-CNFTL strings; Zotero's own locale fallback
applies to other languages. - Automatic update support — the manifest declares
applications.zotero.update_url, and the repository publishesupdate.json, so
Zotero's update check can offer future releases. - Instant live switching, multiple main windows supported, clean enable/disable
(no leftover UI, no leftover preference observers).
Verification performed
All checks were run against a live Zotero 10.0.8 installation:
- Install — installed from file through the Plugins Manager; Zotero reports the
add-on as active immediately (no restart). Installed version in the profile:
1.0.1 → 1.0.2. - Toolbar button — element
#zotero-tb-theme-toggleis injected into
#zotero-tabs-toolbarand resolves its icon from
chrome://theme-toggle/content/icons/sun.svgwhile dark mode is active. - Toggle logic — triggering the button/command toggles the preference
browser.theme.toolbar-theme0 → 1 → 0as expected. - Live apply — after switching the preference, the main window repaints into
the opposite scheme immediately (no restart, no window reload). - Keyboard shortcut — a capture-phase
keydownlistener handles
Ctrl+Shift+D; verified by dispatching the chord and observing the preference
change. - Context menu — the Tools menu renders the custom item
(theme-toggle-menu-label) throughZotero.MenuManager. - Regression fixed before release — a manifest without
applications.zotero.update_urlis rejected by Zotero 8/10 during installation
(“could not be installed / may be incompatible”); the field is now present and
installation succeeds.
Installation
- Download
theme-toggle.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. The toolbar button appears immediately.
To uninstall: Tools → Plugins → Theme Toggle → Remove.
Known limitations
- The toggle always switches between the two explicit modes; to go back to
“follow system”, choose Automatic in Settings → General → Color Scheme. - Only Zotero 8+ is supported (the plugin uses the Zotero 8 plugin APIs such as
Zotero.MenuManager).strict_max_versionis10.*and will be bumped when
needed. - Automatic updates require the update manifest to stay in sync with the latest
release; it is published at
plugins/theme-toggle/update.jsonon themainbranch.
Files in this release
| File | Description |
|---|---|
theme-toggle.xpi |
Installable plugin package (signed-nothing, install via Plugins Manager) |
Source code for this release is available in the repository at tag
theme-toggle-v1.0.2.
Annotate PDF v1.0.7
Annotate PDF v1.0.7 — write Zotero's annotations into the PDF file itself, from the item context menu or the PDF reader toolbar.
This release includes every fix since 1.0.0 (1.0.1 – 1.0.7):
Fixed
- Annotations no longer stack up when the same file is written repeatedly
(Zotero's writer appends to/Annots; only in-place writes hit this). Each
write now removes the annotations it wrote before, so files written several
times are repaired by the next write. - PDFs annotated in other apps are merged, not refused. Annotations that did
not come from this item are imported into Zotero as editable annotations
(Zotero's own Import Annotations… round trip) and then written back once. - Read-only ("external") leftovers are cleaned up: the locked copies Zotero
creates each time an annotated file is opened are moved to the trash when they
duplicate an editable annotation; read-only items with no counterpart in the
file are converted into editable ones. this._worker is nullon the first write after starting Zotero: the PDF
worker is now initialized before it is used directly.- Menu entry works on library items, not only on PDF attachment rows (a
regular item is expanded to its PDF attachments), and it is a single plain
entry (the previous submenu could not be expanded). - Menu entry marker: the entry carries a
🖍️glyph in front of its label,
which always renders (Zotero's menu icon CSS variables did not produce a
visible icon on some setups;menuIconStyle=imageswitches back to the PNG
approach). The entry's visibility/marker is applied from the first menu open. - Overwrite confirmation text now distinguishes linked files (never uploaded —
no sync impact) from Zotero-stored files.
Preferences
defaultAction (copy/overwrite/saveas/ask), outputDir,
backupOnOverwrite, confirmOverwrite, adoptForeignAnnotations,
menuIconStyle, silentErrors.
Verification
Automated end-to-end suite on Zotero 10.0.8 (Windows), all green: repeated
overwrite without stacking, adoption of externally made annotations, trashing of
read-only duplicates, cold-worker write, reader toolbar button, menu visibility
and marker, annotation round-trip (type/color/comment/rects), linked-file copy,
cleanup. Additionally verified against a real library: 39 affected papers fixed
in place, 5,269 annotations, none left read-only.
Install: Tools → Plugins → gear → Install Plugin From File… → pick the .xpi.
Annotate PDF v1.0.0
Annotate PDF v1.0.0 — Release Report
| Release tag | annotate-pdf-v1.0.0 |
| Release date | 2026-11-19 |
| Plugin ID | annotate-pdf@local |
| Artifact | annotate-pdf.xpi |
| SHA-256 | 8cbbaeff8783455dcf8a4debccf3815182033e764952f521dbad9caab294aa51 |
| Compatibility | Zotero 8.0 – 10.x (verified on Zotero 10.0.8, Windows 11) |
| License | AGPL-3.0 |
Summary
First release of Annotate PDF. Zotero keeps annotations in its database, not
in the PDF, so a shared or externally-opened paper loses them. This plugin writes
them into the PDF file itself and adds the missing quick entries: the item
context menu (multi-select) and a button in the PDF reader toolbar.
Three write modes:
- Save Annotated Copy — original untouched; linked files get
<name> (annotated).pdfnext to the original, Zotero-stored files get an
annotated copy imported as a new attachment of the same item. - Overwrite Original PDF… — writes into the file itself, after creating a
<name>.bak.pdfbackup and a confirmation prompt. - Save As… — a normal save dialog.
How it is implemented
The plugin does not re-implement PDF writing. Zotero already ships the
writer: Zotero.PDFWorker.export(itemID, path, isPriority, password, transfer)
(the same code behind the reader's File → Save As… and the library's
File → Export PDF…). It embeds real PDF annotation objects with appearance
streams and /Zotero:* round-trip keys, so the result is readable in any PDF
viewer and re-importable into Zotero.
Notes on the integration:
transferis alwaysfalse— annotation items are never erased from the
database (that would be Zotero 6's removed Store Annotations in File
behaviour).annotationPosition.rectsare already in unrotated PDF user space (y up), so
no coordinate conversion is involved.- After an in-place overwrite the new file mtime is recorded with
attachmentLastProcessedModificationTime, mirroring Zotero's own
deletePages/rotatePagescode, so the reader does not re-import the embedded
annotations as external duplicates on the next open. - Menu registration uses
Zotero.MenuManager(target: main/library/item,
onShowinghides it unless PDF attachments are selected); the reader button is
injected throughZotero.Reader'srenderToolbarevent and uses a
mask-imageicon so it follows the reader theme. - The context menu is a submenu (Write Annotations to PDF ▸ …); its items are
built lazily by Zotero onpopupshowing, which is the documented behaviour.
Verification performed
Build
./scripts/build.shproducesdist/annotate-pdf-1.0.0.xpi(11.6 KB, 13
files),manifest.jsonat the archive root; no dev-only files inside
(chrome/content/dev-selftest.jsis only injected by
scripts/dev/build-dev.sh).- Live install through
AddonManager.getInstallForFile(...).install()in a
running Zotero 10.0.8: add-on reports1.0.0, state active, no restart.
End-to-end suite
scripts/dev/tests/annotate-pdf-e2e.js (driven through the dev-only self-test
channel; the same suite was then re-run against the release build through
Zotero's Run JavaScript console). It creates a scratch collection with generated
test PDFs, exercises every path and erases everything afterwards. Final report
from the release build:
{
"suite": "annotate-pdf-e2e",
"failed": [],
"steps": [
{ "name": "env", "ok": true },
{ "name": "purge-leftovers", "ok": true },
{ "name": "import-test-pdf", "ok": true },
{ "name": "add-annotations", "ok": true },
{ "name": "copy-mode", "ok": true },
{ "name": "copy-info", "ok": true },
{ "name": "roundtrip-from-copy", "ok": true },
{ "name": "overwrite-mode", "ok": true },
{ "name": "overwrite-effects", "ok": true },
{ "name": "reader-open-original", "ok": true },
{ "name": "reader-toolbar-button", "ok": true },
{ "name": "menu-popup-build", "ok": true },
{ "name": "linked-file-copy", "ok": true },
{ "name": "linked-copy-content-check", "ok": true },
{ "name": "cleanup", "ok": true }
]
}Key evidence from the individual steps:
- copy mode — 3 annotations exported; result
{ status: "ok", count: 3, itemID: 15579, "isPDFAttachment": true }, file
annotate-pdf-test (annotated).pdfcreated in Zotero storage. - round-trip — importing the annotations embedded in that copy back into
Zotero yields 3 annotations whosetype,color,commentand rect
coordinates all match the originals exactly, including a two-rect highlight
(100,500,300,512;110,520,280,532) and a Chinese comment (评论 1). - overwrite mode —
{ status: "ok", count: 3 }plus backup
annotate-pdf-test.bak.pdf; database annotation count stays 3;
Zotero.PDFWorker.hasAnnotations()reportstruefor the file. - no duplicate imports — opening the overwritten file in the reader leaves
the annotation count at 3 → 3 (attachmentLastProcessedModificationTime
handling works). - reader toolbar button — found in the rendered toolbar (localized title
Write annotations to PDF, classtoolbar-button, size 28×28,mask-image
loaded fromchrome://annotate-pdf/content/icons/toolbar.svg); a programmatic
click produced a new annotated attachment. - context menu — the submenu (
dataset.l10nId = annotate-pdf-menu) is
injected intomain/library/item, and dispatchingpopupshowingbuilds its
three items (annotate-pdf-menu-copy,-overwrite,-saveas). - linked-file copy — output written next to the source as
annotate-pdf-linked (annotated).pdf; re-importing it yields the 1 annotation
with matching rects. - cleanup — 8 annotations, 5 items and 3 files erased; no leftovers.
Not covered automatically: the Save As… file dialog (needs user interaction);
its code path shares the same export call, and the dialog was exercised manually
during development.
Known limitations
- Overwriting a file that is under Zotero file sync triggers a re-upload; Zotero
removed this capability in Zotero 6 for exactly this reason. The plugin keeps
database annotations, creates.bak.pdf, and asks first — but the risk stays
with the user. - An annotated copy opened in Zotero shows its embedded annotations as
external/read-only (lock icon) — normal Zotero behaviour. - CJK free-text annotations may lack an appearance stream in non-Zotero readers
(Zotero's writer embeds only a Latin font); highlights, underlines and comments
are unaffected. - Encrypted PDFs: the plugin reuses the password of an already-open reader tab;
otherwise it reports an error.
Installation
- Download
annotate-pdf.xpifrom this release. - In Zotero: Tools → Plugins → gear icon → Install Plugin From File…
- Select the file. The plugin is active immediately; the reader button appears in
newly opened PDF tabs.
Files in this release
| File | Description |
|---|---|
annotate-pdf.xpi |
Installable plugin package |
Source code for this release is available at tag
annotate-pdf-v1.0.0.