Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .github | ||
| .vscode | ||
| addon | ||
| doc | ||
| src | ||
| test | ||
| typings | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierignore | ||
| build.cjs | ||
| copy_9376689.png | ||
| eslint.config.mjs | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| zotero-pdf-copier-renamer.xpi | ||
| zotero-plugin.config.ts | ||
Zotero PDF Copier & Renamer
A powerful, lightweight, and restartless add-on for Zotero 7, 8, and 9 that lets you copy attached PDF documents from selected bibliography references into any folder on your computer. Copied PDFs are automatically renamed based on the paper's title (sanitized for safe OS filenames) and index-deduplicated.
Developed and designed with custom branding and a native graphical interface.
Developer Details
- Author: Md. Parvej Hossain
- Email: contact@parvej.me
- Plugin ID:
zotero-pdf-copier-renamer@parvej.me - Icon Artwork:
copy_9376689.png
Key Features
- Direct Context Menu Access: Right-click on any selected items in the main library grid pane to start copying instantly.
- Visual Icon Registration: Custom branded icon next to the context menu command and inside the Zotero Extensions listing for quick visual recognition.
- Smart PDF Copying: Filters all selected items to only copy actual PDF files (skips notes, web links, or citations that do not have attachments).
- Auto-Renaming by Title: Uses the parent paper's metadata title (e.g.
Prediction of Track of Super Cyclone Amphan using WRF-ARW Model.pdf) instead of cryptic random hashes. - Full Filename Sanitization: Automatically strips characters that are illegal or reserved in operating system path strings (such as
:,?,/,\,*,|,",<,>). - Smart Index Deduplication:
- If a paper reference contains multiple PDF attachments, the copier appends numbered suffixes (e.g.
Paper Title_(1).pdf,Paper Title_(2).pdf). - If a file with the same name already exists in the target destination folder, the copier automatically adds a sequence suffix to prevent overwriting existing work.
- If a paper reference contains multiple PDF attachments, the copier appends numbered suffixes (e.g.
- Native OS Folder Picker: Directly launches the native operating system folder selection dialog (handling modern
window.browsingContextrequirements on Zotero 9/Gecko 128+). - Graphical Progress Interface: Features Zotero's native
ItemProgresslayout showing an animated progress bar, real-time completion percentage, and the current file being copied. - Auto-Close Timers: Automatically closes the notification card 5 seconds after copying is complete. Includes clickable dismiss control (click anywhere on the notification card to close immediately).
File Architecture
manifest.json: Describes metadata and specifies Zotero 7 through Zotero 9 compatibility limits.package.json: Configures compilation parameters, dependencies, and packaging configurations.zotero-plugin.config.ts: Builds and bundles the typescript source code utilizing targetfirefox115.build.cjs: A clean, CommonJS Node.js script that compiles typescript assets usingzotero-plugin buildand packages them into the finalzotero-pdf-copier-renamer.xpiinstaller archive.addon/: Folder containing the extension's static assets, resources, preferences, and chrome loaders.src/: Folder containing the TypeScript source code. Core operations are implemented insrc/hooks.ts.
Compilation & Building
To package the extension from source:
- Install Prerequisites: Ensure you have Node.js and
npminstalled on your machine. - Install Dependencies: Open a terminal in this directory and run:
npm install - Compile and Package: Run the CommonJS builder script:
This compiles the source code and generates the installer filenode build.cjszotero-pdf-copier-renamer.xpiin the project root.
Installation Guide
- Open Zotero on your computer.
- Go to the top menu: Tools -> Add-ons (or Extensions).
- Click the gear icon (
⚙️) in the top-right corner of the Add-ons manager page. - Select Install Add-on From File....
- Select the generated
zotero-pdf-copier-renamer.xpifile. - Click Install and restart Zotero when prompted.
How to Operate
- Select one or more papers (regular references) in your Zotero library grid.
- Right-click, and click Copy Attachments to Folder... (identified by the custom logo icon).
- Select the destination folder on your laptop.
- Watch the progress window in the bottom-right corner complete, and check your folder for the copied files!