Files
silverbullet/Library/mrmugame/Silverbullet-PDF.md
2026-02-05 12:53:43 +00:00

1.5 KiB

name, tags, files, share.uri, share.hash, share.mode
name tags files share.uri share.hash share.mode
Library/mrmugame/Silverbullet-PDF meta/library
silverbullet-pdf.plug.js
ghr:MrMugame/silverbullet-pdf/PLUG.md 3498d9f9 pull

Silverbullet PDF

This plug adds the ability to Silverbullet to view and annotate pdfs using a slightly modified version of the pdfjs viewer. If used with Silversearch, Silverbullet PDF can extract text content from PDFs to help you search through them.

screenshot

Installation

Silverbullet PDF is part of the Std repostitory and can by installed using the Library Manager. You will have to navigate to Library/Std/Pages/Library Manager in your space and look for Silverbullet PDF under the available libraries and press Install.

Internals

The build process of this plug is rather weird. The steps are as follows

  1. Uing deno task download the pdfjs repo will be cloned and the pdfjs.patch patch will be applied. I opted for this approach, because I wanted to avoid an extra repo for the few changes
  2. Using deno task install all npm install commands are run
  3. Using deno task build the build process will be run. This will firstly build pdfjs, copy all the important files over and then do the typical vite (ui) + deno (worker) build.