From 971a985e09176bbfebd98518fcec9886491c0e39 Mon Sep 17 00:00:00 2001 From: Oleksandr Shevchuk <34628096+alekswebnet@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:08:29 +0200 Subject: [PATCH] Revise README for clarity on viewer features Updated the README to clarify features and benefits of the PDF.js viewer. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47f3c3a..347858d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # pdfjs-viewer -The [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) as one self-hosted HTML element, ``. It runs in an isolated iframe and has no runtime dependencies. +View and edit PDF files using restyled Firefox's built-in viewer. It runs in an isolated iframe and has no runtime dependencies, works everywhere. [![npm version](https://img.shields.io/npm/v/@missing-elements/pdfjs-viewer?logo=npm&logoColor=fff)](https://www.npmjs.com/package/@missing-elements/pdfjs-viewer) [![jsDelivr hits](https://data.jsdelivr.com/v1/package/npm/@missing-elements/pdfjs-viewer/badge)](https://www.jsdelivr.com/package/npm/@missing-elements/pdfjs-viewer) @@ -11,7 +11,7 @@ The [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) as ## Why use it -- **Instead of the browser's built-in viewer:** you get the same viewer in every browser, and your code controls it. Set the page, zoom, search, theme and language with attributes, or use PDF.js's own API. +- **Instead of the browser's built-in viewer:** you get the same viewer and editor in every browser, and your code controls it. Set the page, zoom, search, theme and language with attributes, or use PDF.js's own API. - **Instead of wiring up `pdfjs-dist` yourself:** PDF.js, its viewer interface, its worker and the data some PDFs need (CMaps, fonts, image decoders, the scripting sandbox) ship in the package, and nothing loads from a CDN by default. - **What it costs:** the element is 4 KB gzipped. The viewer files, about 720 KB gzipped, load only when a viewer is on the page, and the extra PDF.js data only for documents that need it. - **When to use something else:** if you want your own page-rendering interface rather than the PDF.js viewer, use [`pdfjs-dist`](https://www.npmjs.com/package/pdfjs-dist) directly.