Skip to content

Webinfinity/pdf.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • It is not used for development — only for deployment and security notifications.

How to Update the PDF.js Library

1. Download the Latest Release

Get the latest release from the official Mozilla PDF.js repository:

2. Update the dist Folder

Replace the contents of the dist folder with the latest library files:

3. Update package.json Files

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.

4. Update pdfjs.config

Replace the pdfjs.config file with the version from the Mozilla release:

5. Create a DevOps Ticket

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.)

6. Update PdfViewer.cshtml Body

Replace the <body> container in:

with the <body> section from:

7. Update pdfjsVersion Reference

Update the pdfjsVersion value in:

to reflect the new version.

8. Test Locally

  • Run the app locally
  • Thoroughly test the updated viewer
  • Fix any new issues that arise

About

PDF Reader in JavaScript

Topics

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published