| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| pdfjs-6.0.227-legacy-dist.zip | 2026-05-30 | 6.9 MB | |
| pdfjs-6.0.227-dist.zip | 2026-05-30 | 6.6 MB | |
| README.md | 2026-05-30 | 17.8 kB | |
| v6.0.227 source code.tar.gz | 2026-05-30 | 104.3 MB | |
| v6.0.227 source code.zip | 2026-05-30 | 105.4 MB | |
| Totals: 5 Items | 223.2 MB | 51 | |
PDF.js 6.0 is a major release that contains a number of API changes, features and bugfixes.
The complete list of changes in this release is shown below. If you're upgrading to PDF.js 6.0 we recommend checking the changes prefixed with [api-minor] and [api-major] since those might require updates to your code.
Changes since v5.7.284
- Bump the stable version in
pdfjs.configby @timvandermeij in https://github.com/mozilla/pdf.js/pull/21177 - Improve the performances of "gulp lint" by @calixteman in https://github.com/mozilla/pdf.js/pull/21169
- Convert
Catalog.prototype.getPageIndexto an asynchronous method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21181 - Split integration tests into per-browser jobs by @calixteman in https://github.com/mozilla/pdf.js/pull/21179
- Bump actions/setup-node from 6.3.0 to 6.4.0 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21182
- Split the unit/font tests into per-browser jobs by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21183
- Send 'Terminate' to the worker when destroy races the load-time handshake (bug 1942304) by @calixteman in https://github.com/mozilla/pdf.js/pull/21175
- Collect worker-side coverage for browser unit tests by @calixteman in https://github.com/mozilla/pdf.js/pull/21178
- Fix HCM colors for the views-manager massive unselect button (bug 2035551) by @calixteman in https://github.com/mozilla/pdf.js/pull/21187
- Use Istanbul instrumentation for unittestcli code coverage by @calixteman in https://github.com/mozilla/pdf.js/pull/21189
- Add an abstract
readBlockmethod in theDecodeStreamclass by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21190 - Move
unittestclicoverage collection toci.ymlby @timvandermeij in https://github.com/mozilla/pdf.js/pull/21191 - Fix the intermittent test failure 'performs a search in a text containing some Hangul syllables' by @calixteman in https://github.com/mozilla/pdf.js/pull/21193
- Slighty improve codecov stuff in gh actions by @calixteman in https://github.com/mozilla/pdf.js/pull/21194
- Improve error handling in the
PDFFindController.prototype.#extractTextmethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21197 - Wait for the first page to be ready in the reorganize pages integration tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21186
- Simplify the
nextChunkhandling in theDecryptStreamclass by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21198 - Shorten how intersectors are added to the grid in the
Intersectorconstructor by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21200 - Optimize memory usage in the unit tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21195
- Remove obsolete
pdfBug: trueflag in the image caching unit test by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21203 - Add some colors in the logs in order to easily see failures and add a summary of the failures at the end by @calixteman in https://github.com/mozilla/pdf.js/pull/21192
- Improve performance of the "caches image resources at the document/page level as expected (issue 11878)" unit-test by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21206
- Use a reduced test-case for the "caches image resources at the document/page level as expected (issue 11878)" unit-test by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21207
- Fix free highlight on pages without images (bug 2035530) by @calixteman in https://github.com/mozilla/pdf.js/pull/21196
- l10n: Update locale files by @sync-l10n-for-pdf-js[bot] in https://github.com/mozilla/pdf.js/pull/21208
- [api-major] Update the minimum supported browsers, and remove no longer needed polyfills by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21152
- [api-minor] Use the ImageDecoder by default on Chrome by @calixteman in https://github.com/mozilla/pdf.js/pull/20961
- Bump library version to
6.0by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21209 - Optimize runtime of the find controller unit tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21210
- Don't provide unused /DecodeParms when initializing
JpxStreamby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21211 - Remove the
CompilerOutput.prototype.finalDatagetter, and a few other font improvements (PR 21053 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21214 - Replace a loop with
TypedArray.prototype.set()in thecompileFDSelectmethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21215 - Remove the unused
rawfield from theCFFCharsetclass by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21216 - Replace
TrueTypeTableBuilderandCompilerOutputwith a single class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21220 - Add an abstract
WasmImageclass, thatJBig2CCITTFaxImageandJpxImageinherit from by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21225 - Clear the text layer container when cancelling rendering by @calixteman in https://github.com/mozilla/pdf.js/pull/21219
- Run unit-tests in Node.js version 26 by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21224
- A couple of small tweaks of the
getPdfFilenameFromUrlhelper by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21222 - Include the
external/folder in the coverage report forgulp unittestcliby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21226 - Tweak the
WasmImageimplementation a little bit (PR 21225 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21229 - Bump ip-address from 10.1.0 to 10.2.0 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21232
- Make sure the focus moves on the first page of the added pdf after a merge (bug 2034827) by @calixteman in https://github.com/mozilla/pdf.js/pull/21223
- Place new annotations on the correct page when extracting pages (bug 2027682) by @calixteman in https://github.com/mozilla/pdf.js/pull/21228
- Improve soft mask composition performance (bug 2033095) by @calixteman in https://github.com/mozilla/pdf.js/pull/21235
- Simplify '#getFilteredPageIndices' and '#resolveInsertAfterIndices' by @calixteman in https://github.com/mozilla/pdf.js/pull/21231
- l10n: Update locale files by @sync-l10n-for-pdf-js[bot] in https://github.com/mozilla/pdf.js/pull/21237
- Bump fast-xml-builder from 1.1.5 to 1.2.0 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21243
- Bump fast-uri from 3.1.0 to 3.1.2 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21244
- Bump @babel/plugin-transform-modules-systemjs from 7.29.0 to 7.29.4 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21248
- Make the
PDFDataRangeTransportstreaming unit-tests faster by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21238 - Use
Uint8Array.fromHexintest/unit/crypto_spec.jsby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21246 - Fall back to pixel-buffer SMask filtering when ctx.filter is unavailable by @calixteman in https://github.com/mozilla/pdf.js/pull/21236
- [api-major] Remove support for calling
getDocumentwithout a parameter object, and remove thePDFDocumentProxy.prototype.destroymethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21245 - Support providing a
filenameunconditionally, when passing binary data toPDFViewerApplication.openby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21249 - perf: Avoid multi-second getDestinations stalls for PDFs with many named destinations by @saripovdenis in https://github.com/mozilla/pdf.js/pull/21213
- Avoid cycles when getting operator list in patterns by @calixteman in https://github.com/mozilla/pdf.js/pull/21230
- Move the
getModificationDatehelper function intosrc/core/core_utils.jsby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21258 - Update the
deepComparehelper function to handleRefs andNames correctly by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21257 - Render knockout transparency groups by @calixteman in https://github.com/mozilla/pdf.js/pull/21242
- Update dependencies to the most recent versions by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21256
- Bump github/codeql-action from 4.35.2 to 4.35.3 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21265
- Use FeatureTest.isCanvasFilterSupported in _bakeSMaskCanvas by @calixteman in https://github.com/mozilla/pdf.js/pull/21264
- [Editor] Avoid "generating" the l10n-ids used for the
a11yAlertby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21263 - Fix nested non-isolated groups in knockout rendering by @calixteman in https://github.com/mozilla/pdf.js/pull/21262
- Remove the executable bit from test PDF files by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21267
- Avoid bundling DOM-related code in the built
pdf.worker.mjsfile by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21269 - Collect coverage information for the integration tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21173
- Add a lint-chmod task to catch stray executable bits by @calixteman in https://github.com/mozilla/pdf.js/pull/21268
- Add a simple API unit-test for /BrotliDecode by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21271
- Enable Codecov flag carryforward for accurate coverage badge by @calixteman in https://github.com/mozilla/pdf.js/pull/21274
- Ensure TextLayer hiddenCanvasElement is layout-neutral by default by @RolandWArnold in https://github.com/mozilla/pdf.js/pull/21218
- l10n: Update locale files by @sync-l10n-for-pdf-js[bot] in https://github.com/mozilla/pdf.js/pull/21278
- Move the
stringToPDFStringhelper function to the worker-thread by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21279 - Remove the
Util.domMatrixToTransformmethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21281 - Clear the full SMask scratch canvas in compose() by @calixteman in https://github.com/mozilla/pdf.js/pull/21277
- [api-minor] Move the
getXfaPageViewporthelper into theXfaLayerclass by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21283 - Move the
SVG_NSdefinition intosrc/shared/util.jsby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21284 - Add a couple of very basic
ColorConvertersunit-tests by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21286 - Remove the unused
Outline._normalizePagePointmethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21287 - Add an integration-test for the page-name fuzzy matching in the
PDFDocumentPropertiesdialog by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21289 - Add an integration-test for documents without
contentLengthavailable in thePDFDocumentPropertiesdialog by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21291 - Enable the
must check that an existing highlight is ignored on hoveringintegration test on Windows by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21288 - Optimize runtime and memory usage of the integration tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21275
- Recover CFF private dict defaults zeroed by Ghostscript by @calixteman in https://github.com/mozilla/pdf.js/pull/21290
- Add a Content-Security-Policy to pdf.js' viewer.html (bug 1960363) by @calixteman in https://github.com/mozilla/pdf.js/pull/21261
- Move the
Util.scaleMinMaxhelper intosrc/display/canvas_dependency_tracker.jsby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21294 - Add more integration-tests, with multi-page documents, for the
PDFDocumentPropertiesdialog by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21295 - Introduce integration tests for the presentation mode functionality by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21292
- Disable hardware acceleration for Chrome tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21299
- Make text selection more visible (bug 1879559) by @wooorm in https://github.com/mozilla/pdf.js/pull/20981
- Fix 'Select all' after [#20981] by @calixteman in https://github.com/mozilla/pdf.js/pull/21309
- Don't use "internal"
EventBusmethods in the integration-tests by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21305 - Bump actions/create-github-app-token from 3.1.1 to 3.2.0 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21301
- Bump github/codeql-action from 4.35.3 to 4.35.4 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21302
- Extend unit-test coverage for the
getPdfFilenameFromUrlhelper function by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21311 - Add basic integration-tests for the
PdfTextExtractorclass by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21304 - Allow merging a PDF by dropping it onto the thumbnail viewer by @calixteman in https://github.com/mozilla/pdf.js/pull/21306
- Sanitize glyf composite cycles, OS/2 length and maxp version mismatches by @calixteman in https://github.com/mozilla/pdf.js/pull/21300
- l10n: Update locale files by @sync-l10n-for-pdf-js[bot] in https://github.com/mozilla/pdf.js/pull/21316
- Use the CFF program directly for CID fonts wrapped in OpenType FontFile3 by @calixteman in https://github.com/mozilla/pdf.js/pull/20542
- Shorten the
fontFilelookup a tiny bit by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21322 - Shorten the
XfaLayerBuilder.prototype.rendermethod by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21317 - Use
Uint8Array.fromBase64in thetest/integration/highlight_editor_spec.mjsfile by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21323 - Simplify how the character BBox is scaled in
src/display/canvas_dependency_tracker.jsby @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21324 - Add support for Optional Content in the AnnotationLayer (issue 20433) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21313
- Fix the
XRefWrapperimplementation, in thesrc/core/editor/pdf_editor.jsfile by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21319 - Keep the first /Subrs and /CharStrings block by @calixteman in https://github.com/mozilla/pdf.js/pull/21315
- Substitute a system font when an embedded CFF is truncated by @calixteman in https://github.com/mozilla/pdf.js/pull/21320
- Update dependencies to the most recent versions by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21328
- Recover CFF FontBBox with negative coordinates encoded as unsigned 16-bit by @calixteman in https://github.com/mozilla/pdf.js/pull/21314
- Force the text selection color to be in light mode by @calixteman in https://github.com/mozilla/pdf.js/pull/21329
- Prevent inherited spacing from affecting text layer by @danyalahmed1995 in https://github.com/mozilla/pdf.js/pull/21321
- Avoid a temporary variable and return results directly in a couple of functions by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21332
- Load the predefined CMap for composite fonts that omit the FontDescriptor by @calixteman in https://github.com/mozilla/pdf.js/pull/21331
- Enable 'eslint-plugin-regexp' and fix existing findings by @calixteman in https://github.com/mozilla/pdf.js/pull/21330
- Recover the browser session on test timeout to keep running subsequent tests by @calixteman in https://github.com/mozilla/pdf.js/pull/21333
- Run unit-tests and integration-tests when the
external/builder/folder is changed by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21340 - Remove unused variables with the Babel plugin by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/21339
- Revert "Remove unused variables with the Babel plugin" by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21342
- Add support for encrypted attachments by @wooorm in https://github.com/mozilla/pdf.js/pull/21234
- Bump github/codeql-action from 4.35.4 to 4.35.5 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21344
- Bump codecov/codecov-action from 6.0.0 to 6.0.1 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/21345
- Use a black backdrop for Luminosity SMasks when /BC is missing by @calixteman in https://github.com/mozilla/pdf.js/pull/21348
- Allow merging several PDFs at once via the picker or drag-and-drop by @calixteman in https://github.com/mozilla/pdf.js/pull/21335
- Parse CID-keyed Type 1 fonts instead of falling back to a system font by @calixteman in https://github.com/mozilla/pdf.js/pull/21336
- l10n: Update locale files by @sync-l10n-for-pdf-js[bot] in https://github.com/mozilla/pdf.js/pull/21354
- Allow inserting an image as a new page when editing a PDF (bug 2032967) by @calixteman in https://github.com/mozilla/pdf.js/pull/21334
- Clamp out-of-range BlueScale to Adobe's valid window by @calixteman in https://github.com/mozilla/pdf.js/pull/21343
- Add a pref to postMessage when mozPrintCallback has completed (bug 2036265) by @calixteman in https://github.com/mozilla/pdf.js/pull/21308
- Fix missing non-zero exit code for failure cases in
test.mjsby @timvandermeij in https://github.com/mozilla/pdf.js/pull/21357 - Upgrade Puppeteer to version 25.1.0 by @timvandermeij in https://github.com/mozilla/pdf.js/pull/21285
- Re-factor how "internal" EventBus listeners are handled in the viewer by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/21355