2
0
Fork
You've already forked helium-pdfjs
0
[WIP] PDF.js for the Helium Browser
  • Shell 100%
2026年05月01日 11:42:39 +06:00
.github/workflows ci: add a release workflow 2026年05月01日 11:35:59 +06:00
patches ui/fix-ui-nits: fix thumbnail border width and vertical gap 2026年04月30日 16:55:08 +06:00
.gitignore repo: initial commit with initial patching and dev env 2026年04月30日 16:40:21 +06:00
dev.sh dev.sh & env.sh: resolve script paths correctly 2026年05月01日 11:42:39 +06:00
env.sh dev.sh & env.sh: resolve script paths correctly 2026年05月01日 11:42:39 +06:00
LICENSE repo: initial commit with initial patching and dev env 2026年04月30日 16:40:21 +06:00
pdfjs_version repo: initial commit with initial patching and dev env 2026年04月30日 16:40:21 +06:00
README.md repo: initial commit with initial patching and dev env 2026年04月30日 16:40:21 +06:00

Helium PDF.js (WIP)

PDF.js adapted for the Helium Browser as a browser component.

Why

Chromium's PDF viewer sucks and is very difficult to build on top of, but we want to have a good PDF viewing experience in our browser.

Instead of reinventing the wheel, we use the work of talented Mozillians and fix some rough edges to make it feel at home in Helium.

How

This repo fetches the expected release tag, patches source files with quilt, and builds a Chromium extension ready for embedding into Helium.

Local development and testing

We expect that you work on this extension in a UNIX environment (Linux/macOS).

  1. Clone this repo:

    git clone https://github.com/imputnet/helium-pdfjs
    
  2. Go to the newly created dir:

    cd helium-pdfjs
    
  3. Run the initial setup script to fetch the source code, npm deps, and apply patches:

    source dev.sh
    pdf setup
    
  4. Create a Chromium extension build:

    pdf build
    
  5. For basic testing, import the unpacked extension from build/chromium into any Chromium-based web browser, such as Helium. Printing will not work correctly, as it's handled on browser-side, but everything else will.

  6. All source changes must reside in patches. The sourced environment configures quilt, so use regular quilt commands directly from build/src.

Working with patches

This repo uses the same quilt environment as the main Helium repos, but with a single patch series at patches/series.

  1. Load the dev environment:

    source dev.sh
    
  2. Go to the source tree:

    cd build/src
    
  3. Use quilt to create or edit a patch:

    quilt new general/my-change.patch
    quilt add path/to/file.js
    
  4. Refresh the patch after editing:

    quilt refresh
    

License

Just like PDF.js itself, this repo is licensed under the Apache License 2.0.