Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.
/ pdf.js-public Public archive
forked from mozilla/pdf.js

PDF Reader in JavaScript

License

Notifications You must be signed in to change notification settings

iCHEF/pdf.js-public

This branch is 22 commits ahead of, 6128 commits behind mozilla/pdf.js:master.

Folders and files

NameName
Last commit message
Last commit date
Nov 10, 2021
Nov 9, 2021
Nov 9, 2021
May 30, 2021
Jun 20, 2021
May 10, 2021
Jul 8, 2021
Jul 25, 2021
Jul 25, 2021
Jul 24, 2021
Jul 23, 2021
Nov 14, 2015
Mar 14, 2021
Jul 24, 2021
Oct 29, 2015
Jun 2, 2018
Jul 17, 2015
Nov 6, 2019
Nov 6, 2019
Nov 22, 2017
Apr 14, 2020
Aug 30, 2020
Jan 22, 2021
Nov 29, 2017
Mar 28, 2019
Oct 23, 2017
Feb 17, 2015
Nov 10, 2021
Nov 8, 2021
Jul 22, 2021
Nov 9, 2021
Nov 10, 2021
May 30, 2021
Mar 13, 2021

Repository files navigation

PDF.js

This is the forked version of PDF.js. NOT the official repo.

If you are looking for the official repo of PDF.js, please visit mozilla/pdf.js.

Usage

We publish the distribution files (the viewer) as private npm packages.

Development

Install Dependencies

Using npm install with NPM v7 above will upgrade the lockfileVersion of package-lock.json and result in a huge package-lock.json file.

You can use npm ci instead to install the dependencies: https://docs.npmjs.com/cli/v7/commands/npm-ci

Build viewer

There are several scripts to build the viewer with different setting:

npm run build:generic # For modern browser (Not include iOS Safari)
npm run build:generic-legacy # Support more browsers
npm run build:minified # For modern browser (Not include iOS Safari) and with JS minified
npm run build:minified-legacy # Support more browsers with JS minified

npm run build will run npm run build:minified-legacy by default.

Example Output:

build/
└── minified-legacy/
    ├── build/
    │   ├── pdf.js                             - display layer
    │   ├── pdf.js.map                         - display layer's source map
    │   ├── pdf.sandbox.js                     - secure container for embedded script
    │   ├── pdf.sandbox.js.map                 - secure container's source map
    │   ├── pdf.worker.js                      - core layer
    │   └── pdf.worker.js.map                  - core layer's source map
    ├── web/
    │   ├── cmaps/                             - character maps (required by core)
    │   ├── images/                            - images for the viewer and annotation icons
    │   ├── locale/                            - translation files
    │   ├── standard_fonts/                    - basic fonts used for render pdf file without embedded font
    │   ├── debugger.js                        - helpful debugging features
    │   ├── viewer.css                         - viewer style sheet
    │   ├── viewer.html                        - viewer layout
    │   ├── viewer.js                          - viewer layer
    │   └── viewer.js.map                      - viewer layer's source map
    └── LICENSE

About

PDF Reader in JavaScript

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • CSS 1.5%
  • Other 1.0%