{"id":13406134,"url":"https://github.com/windingwind/zotero-pdf-preview","last_synced_at":"2025-09-27T10:30:22.143Z","repository":{"id":45507206,"uuid":"513569458","full_name":"windingwind/zotero-pdf-preview","owner":"windingwind","description":"Preview Zotero attachments in the library view.","archived":true,"fork":false,"pushed_at":"2024-01-25T06:38:25.000Z","size":816,"stargazers_count":1157,"open_issues_count":0,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-26T22:40:48.118Z","etag":null,"topics":["pdf","preview","zotero","zotero-plugin","zotero7"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/windingwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["windingwind"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"windingwind","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://paypal.me/windingwind?country.x=C2\u0026locale.x=zh_XC"]}},"created_at":"2022-07-13T15:12:28.000Z","updated_at":"2024-09-25T09:59:48.000Z","dependencies_parsed_at":"2023-11-06T02:27:25.747Z","dependency_job_id":"0d0c2e8f-9225-45a8-a107-efb5ee748dcc","html_url":"https://github.com/windingwind/zotero-pdf-preview","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingwind%2Fzotero-pdf-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingwind%2Fzotero-pdf-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingwind%2Fzotero-pdf-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windingwind%2Fzotero-pdf-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windingwind","download_url":"https://codeload.github.com/windingwind/zotero-pdf-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234425942,"owners_count":18830821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pdf","preview","zotero","zotero-plugin","zotero7"],"created_at":"2024-07-30T19:02:22.060Z","updated_at":"2025-09-27T10:30:21.786Z","avatar_url":"https://github.com/windingwind.png","language":"TypeScript","funding_links":["https://github.com/sponsors/windingwind","https://liberapay.com/windingwind","https://paypal.me/windingwind?country.x=C2\u0026locale.x=zh_XC"],"categories":["TypeScript","Extensions"],"sub_categories":["Customization"],"readme":"\u003e This repository/plugin is archived and no longer maintained, since from Zotero 7.0.0-beta.55, attachment preview is supported natively.\n\n# Preview for Zotero\n\n[![Using Zotero Plugin Template](https://img.shields.io/badge/Using-Zotero%20Plugin%20Template-blue?style=flat-square\u0026logo=github)](https://github.com/windingwind/zotero-plugin-template)\n\n![teaser](./image/README/teaser.gif)\n\nPreview attachments in the library view.\n\nFast \u0026 easy. Do not require any third-party softwares.\n\n## 🧩 Outline\n\n[👋 Install](#-install)\n\n[😎 Quick start](#-quick-start)\n\n[🔧 Development](#-development)\n\n[🔎 My Zotero Plugins](#-my-zotero-plugins)\n\n## 👋 Install\n\n\u003e For Zotero 6, install the [latest stable version](https://github.com/windingwind/zotero-pdf-preview/releases/latest); For Zotero 7, install the [latest prerelease version](https://github.com/windingwind/zotero-pdf-preview/releases/)\n\n- Download the latest release (.xpi file) from the [Releases Page](https://github.com/windingwind/zotero-pdf-preview/releases)\n  _Note_ If you're using Firefox as your browser, right-click the `.xpi` and select \"Save As..\"\n- In Zotero click `Tools` in the top menu bar and then click `Addons`\n- Go to the Extensions page and then click the gear icon in the top right.\n- Select `Install Add-on from file`.\n- Browse to where you downloaded the `.xpi` file and select it.\n- Finish!\n\n## 😎 Quick start\n\nPreview can be found in the right side panel of Zotero's main window. You can preview items in either the top/bottom of the info pane or the preview pane. See [Settings](#settings) to customize your preview position.\n\n### Shortcuts\n\nTo show/hide the preview in info pane, use shortcut `P` or drag/click the toggel bar.\n\nTo zoom in or zoom out, hold `ctrl/cmd` and scroll, or `ctrl/cmd and +/-`;\n\nTo reset zoom, use `ctrl/cmd + 0`.\n\n### Settings\n\nFind settings here: Menubar -\u003e Edit -\u003e Preferences -\u003e Preview\n\n| Setting                                    | Details                                                                                                              | Default Value |\n| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ------------- |\n| Enable Preview                             | Enable to allow the preview behavior.                                                                                | `true`        |\n| Preview in Info Tab                        | Enable to show the preview in a split view under 'info' tab.                                                         | `true`        |\n| Preview Position                           | Preview position in the Info Tab                                                                                     | `bottom`      |\n| Preview in 'Preview' Tab                   | Enable show the preview in a new tab of right sidebar.                                                               | `true`        |\n| Show Toolbar in Info Tab/Preview Tab       | Enable show the toolbar there.                                                                                       | `true`        |\n| Show Annotations                           | Enable to show annotations of the PDF files. May slow down the preview speed.                                        | `false`       |\n| Show Hovered Page Style                    | Enable extra style of the hovered page: box shadow and hand cursor.                                                  | `true`        |\n| Double-click Preview Page to Open/Jump PDF | Enable double-click to open/jump to the selected page of PDF.                                                        | `true`        |\n| Dark Mode                                  | Enable to preview PDF files in dark mode. This is a naive dark mode and images color may not be displayed correctly. | `false`       |\n| Preview First _N_ Pages                    | See [below](#advanced-usage-of-preview-page-index)                                                                   | `10`          |\n| Preview Tab Name                           | Set the tab label.                                                                                                   | `preview`     |\n\n### Advanced Usage of Preview Page Index\n\nA python-style slice command is supported.\n\n\u003cdetails\u003e\n  \u003csummary\u003eSyntax: Click to expand\u003c/summary\u003e\n  \n  `command1,command2,...`  \nSupported Commands:\n\n- Number  \n  Number from 1 to last page\n\n  \u003e Example:  \n  \u003e `1`  \n  \u003e preview page 1\n\n  ***\n\n  \u003e Example:  \n  \u003e `10`  \n  \u003e preview page 10\n\n- Slice  \n   `startIndex:stopIndex`.  \n   The `startIndex` page is included while the `stopIndex` page is excluded.\n\n  `startIndex` or `stopIndex` may be a negative number, which means it counts from the end of the file instead of the beginning.\n\n  The `startIndex` or `stopIndex` may be missing to indicate that starts from the first page or ends at the last page.\n\n  \u003e Example:  \n  \u003e `1:11`  \n  \u003e preview page 1-10\n\n  ***\n\n  \u003e Example:  \n  \u003e `:11`  \n  \u003e preview page first page(1)-10\n\n  ***\n\n  \u003e Example:  \n  \u003e `10:`  \n  \u003e preview page 10-last page\n\n  ***\n\n  \u003e Example:  \n  \u003e `-3:`  \n  \u003e preview last 3 pages\n\n  ***\n\n  \u003e Example:  \n  \u003e `:-3`  \n  \u003e preview page first page(1)-last 3rd page(excluded)\n\n  ***\n\n  \u003e Example:  \n  \u003e `:`  \n  \u003e preview every page\n\n  \u003c/details\u003e\n\n## 🔧 Development\n\nThis plugin is built based on the [Zotero Plugin Template](https://github.com/windingwind/zotero-plugin-template). See the setup and debug details there.\n\nTo startup, run\n\n```bash\ngit clone https://github.com/windingwind/zotero-better-notes.git\ncd zotero-better-notes\nnpm install\nnpm run build\n```\n\nThe plugin is built to `./builds/*.xpi`.\n\n## 🔔 Disclaimer\n\nUse this code under AGPL. No warranties are provided. Keep the laws of your locality in mind!\n\n## 🔎 My Zotero Plugins\n\n- [zotero-pdf-translate](https://github.com/windingwind/zotero-pdf-translate): PDF translation for Zotero\n- [zotero-pdf-preview](https://github.com/windingwind/zotero-tag): PDF preview for Zotero\n- [zotero-tag](https://github.com/windingwind/zotero-tag): Automatically tag items/Batch tagging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindingwind%2Fzotero-pdf-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindingwind%2Fzotero-pdf-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindingwind%2Fzotero-pdf-preview/lists"}