This repository:
- Contains officially released packages and serves as the source for CI/CD.
- Includes metadata files of official releases (like
package.json
) to support Dependabot.- The npm
pdfjs
module is limited and does not include the Viewer. To ensure Dependabot continues functioning, we include the metadata files.
- The npm
- It is not used for development — only for deployment and security notifications.
Get the latest release from the official Mozilla PDF.js repository:
- Go to https://github.com/mozilla/pdf.js/releases
- Download the archive:
http://pdfjs-{latest-version}-dist.zip
Replace the contents of the dist
folder with the latest library files:
- Repository: Webinfinity/pdf.js – dist folder
Replace the following files in the Webinfinity repo with those from the corresponding Mozilla release:
Use the versions from the corresponding Mozilla PDF.js release.
Replace the pdfjs.config
file with the version from the Mozilla release:
Submit an SRE ticket requesting deployment of the updated library to S3:
- For example:
https://cdn.dev.webinfinity.com/pdfjs/{latest-version}
- Request deployment to all environments (dev, staging, production, etc.)
Replace the <body>
container in:
with the <body>
section from:
Update the pdfjsVersion
value in:
to reflect the new version.
- Run the app locally
- Thoroughly test the updated viewer
- Fix any new issues that arise