Repository navigation
build(pdfjs): update to pdf.js 6.5.438 - #2
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
September 15, 2026 09:47
3d7932b to
5d1924f
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
October 6, 2026 11:47
5d1924f to
87fb5b1
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
October 13, 2026 12:29
87fb5b1 to
09ddd41
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
October 27, 2026 10:19
09ddd41 to
80ada00
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
November 3, 2026 12:38
80ada00 to
bb79130
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
pdfjs-distfrom 6.2.108 to 6.5.438 and re-vendors the viewer underpackages/pdfjs-viewer/viewerfrom the matching pdf.js release. The two have tomove together — pdf.js refuses to start when their versions disagree — which is
why neither Renovate nor Dependabot handles this dependency.
Re-vendoring re-applies our patches to
viewer.html(the custom stylesheet andscript, and the relaxed
style-src-elemCSP) and fails if upstream's markup movedout from under them.
CI ran the unit and Playwright suites against the result before opening this PR,
since a scheduled run's PR does not start workflows of its own.
Vendored files changed
Only
viewer.htmlis patched by us; everything else is upstream verbatim.Upstream comparison
pdf.js release notes for v6.5.438
This release contains improvements for accessibility, annotation editing, annotation rendering, font conversion, image conversion, performance, scripting, tiling pattern rendering and the viewer.
Changes since v6.4.299
pdfjs.configby @timvandermeij in Bump the stable version inpdfjs.configmozilla/pdf.js#22066convertRGBToRGBAandImageResizerby @calixteman in Fix a few edge cases when converting RGB images inconvertRGBToRGBAandImageResizermozilla/pdf.js#22046Set.prototype.deletein theChunkedStreamManagercode by @Snuffleupagus in Directly callSet.prototype.deletein theChunkedStreamManagercode mozilla/pdf.js#22065Catalog.getAllPageDicts(issue 22011) by @xjtu-ctgg in Don't stop at the first broken /Kids entry inCatalog.getAllPageDicts(issue 22011) mozilla/pdf.js#22013util.printfby @kwy404 in Keep the sign of negative numbers greater than -1 inutil.printfmozilla/pdf.js#22017LIGATURE_TO_UNICODEMap only once by @Snuffleupagus in Create theLIGATURE_TO_UNICODEMap only once mozilla/pdf.js#22068gulp-replacewithtransformfor the Chromium manifest by @calixteman in Replacegulp-replacewithtransformfor the Chromium manifest mozilla/pdf.js#22072textLayeron update (PR 20492 follow-up) by @Snuffleupagus in [api-minor] Don't re-layout thetextLayeron update (PR 20492 follow-up) mozilla/pdf.js#220456.5by @Snuffleupagus in Bump library version to6.5mozilla/pdf.js#22073gulp-clidependency by @calixteman in Remove the explicitgulp-clidependency mozilla/pdf.js#22077ttestwith a local Welch's t-test by @calixteman in Replacettestwith a local Welch's t-test mozilla/pdf.js#22075getCharUnicodeCategoryregular expression (issue 21890) by @Om-singhaI in Match the whole string in thegetCharUnicodeCategoryregular expression (issue 21890) mozilla/pdf.js#21960docsgulp task by @calixteman in Replace Metalsmith with adocsgulp task mozilla/pdf.js#22081postMessageerrors when replying tosendWithPromisemessages (issue 22079) by @Snuffleupagus in Don't swallowpostMessageerrors when replying tosendWithPromisemessages (issue 22079) mozilla/pdf.js#22080RendererWorkerversion matches the API version, and reduce the size of the builtpdf.renderer.mjsfile (PR 21860 follow-up) by @Snuffleupagus in Ensure that theRendererWorkerversion matches the API version, and reduce the size of the *built*pdf.renderer.mjsfile (PR 21860 follow-up) mozilla/pdf.js#22097DOMCanvasFactoryimport in the new debugger (PR 22097 follow-up) by @Snuffleupagus in Fix theDOMCanvasFactoryimport in the new debugger (PR 22097 follow-up) mozilla/pdf.js#22098RendererWorkerimprovements (PR 21860 follow-up) by @Snuffleupagus in A couple ofRendererWorkerimprovements (PR 21860 follow-up) mozilla/pdf.js#22103crypto.randomUUIDis available in thegetUuidhelper (issue 22107) by @Snuffleupagus in Always check ifcrypto.randomUUIDis available in thegetUuidhelper (issue 22107) mozilla/pdf.js#22108src/display/display_utils.jsfile into multiple ones (PR 21860 follow-up) by @Snuffleupagus in Split thesrc/display/display_utils.jsfile into multiple ones (PR 21860 follow-up) mozilla/pdf.js#22101type1FontGlyphMappingfunction by @Snuffleupagus in Reduce duplication in thetype1FontGlyphMappingfunction mozilla/pdf.js#22104canvasFactoryandfilterFactoryjust once in theRendererMessageHandler(PR 21860 follow-up) by @Snuffleupagus in CreatecanvasFactoryandfilterFactoryjust once in theRendererMessageHandler(PR 21860 follow-up) mozilla/pdf.js#22114StatTimer.prototype.toStringmethod by @Snuffleupagus in Add unit-tests for theStatTimer.prototype.toStringmethod mozilla/pdf.js#22109BaseCanvasFactoryfor getting a no-alpha canvas context by @Snuffleupagus in Add a method inBaseCanvasFactoryfor getting a no-alpha canvas context mozilla/pdf.js#22116util.scandcalls (PR 21681 follow-up) by @calixteman in Fix repeatedutil.scandcalls (PR 21681 follow-up) mozilla/pdf.js#22146PDFFetchStreamRangeReaderandPDFNodeStreamRangeReaderclasses (issue 22171) by @Snuffleupagus in Prevent "uncaught exceptions" from thePDFFetchStreamRangeReaderandPDFNodeStreamRangeReaderclasses (issue 22171) mozilla/pdf.js#22173getPermissionserrors inPDFViewer.prototype.setDocumentby @Snuffleupagus in CatchgetPermissionserrors inPDFViewer.prototype.setDocumentmozilla/pdf.js#22168DataViewwhen populating thewarray in thecalculateMD5function by @Snuffleupagus in Use aDataViewwhen populating thewarray in thecalculateMD5function mozilla/pdf.js#22201DataViewwhen populating thewarray in thecalculateSHA256function by @Snuffleupagus in Use aDataViewwhen populating thewarray in thecalculateSHA256function mozilla/pdf.js#22203DataViews when reading/writing data in thecalculateSHA512function by @Snuffleupagus in UseDataViews when reading/writing data in thecalculateSHA512function mozilla/pdf.js#22204codeLenCodeMap, used withFlateStream, into a Uint8Array by @Snuffleupagus in Change thecodeLenCodeMap, used withFlateStream, into a Uint8Array mozilla/pdf.js#22217copyWithin, rather than a manual loop, for non-overlapping data inFlateStream.prototype.#readBlockby @Snuffleupagus in UsecopyWithin, rather than a manual loop, for non-overlapping data inFlateStream.prototype.#readBlockmozilla/pdf.js#22220fill, rather than a manual loop, for repeated data inFlateStream.prototype.#readBlockby @Snuffleupagus in Usefill, rather than a manual loop, for repeated data inFlateStream.prototype.#readBlockmozilla/pdf.js#22221FlateStream.prototype.generateHuffmanTablemethod by @Snuffleupagus in Compute the table entry once in theFlateStream.prototype.generateHuffmanTablemethod mozilla/pdf.js#22219String.fromCharCodecalls in theLexer.prototype.getStringmethod by @Snuffleupagus in Avoid someString.fromCharCodecalls in theLexer.prototype.getStringmethod mozilla/pdf.js#22227MessageHandlershared by multipleBasePdfManagerinstances (PR 22145 follow-up) by @Snuffleupagus in Don't remove aMessageHandlershared by multipleBasePdfManagerinstances (PR 22145 follow-up) mozilla/pdf.js#22186actions/setup-nodeto version 7.1.0 by @timvandermeij in Updateactions/setup-nodeto version 7.1.0 mozilla/pdf.js#22239copyWithinthreshold inFlateStream.prototype.#readBlock(PR 22220 follow-up) by @Snuffleupagus in Tweak thecopyWithinthreshold inFlateStream.prototype.#readBlock(PR 22220 follow-up) mozilla/pdf.js#22240toHexDigitparser-helper in theType1Parsercode by @Snuffleupagus in Use thetoHexDigitparser-helper in theType1Parsercode mozilla/pdf.js#22253Parser.prototype.findASCII85DecodeInlineStreamEndmethod by @Snuffleupagus in Simplify theParser.prototype.findASCII85DecodeInlineStreamEndmethod mozilla/pdf.js#22274Utilhelper for creating a Uint8Array identity-map with 256 elements by @Snuffleupagus in Add aUtilhelper for creating a Uint8Array identity-map with 256 elements mozilla/pdf.js#22236TypedArray.prototype.setin themeshPackDatafunction by @Snuffleupagus in UseTypedArray.prototype.setin themeshPackDatafunction mozilla/pdf.js#22250calculateMD5,calculateSHA256, andcalculateSHA512functions by @Snuffleupagus in Avoid loops when initializing data in thecalculateMD5,calculateSHA256, andcalculateSHA512functions mozilla/pdf.js#22301Array.prototype.fillmore in thesrc/core/bidi.jscode by @Snuffleupagus in UseArray.prototype.fillmore in thesrc/core/bidi.jscode mozilla/pdf.js#22312Autolinker.processLinksby @Snuffleupagus in Skip unnecessary parsing inAutolinker.processLinksmozilla/pdf.js#22327getTextContentto usegetReaderinstead by @Snuffleupagus in UpdategetTextContentto usegetReaderinstead mozilla/pdf.js#22329PDFDocumenthelper method for creating aPageinstance by @Snuffleupagus in Add aPDFDocumenthelper method for creating aPageinstance mozilla/pdf.js#22332pdf.renderer.mjsfile (PR 22101 follow-up) by @Snuffleupagus in Avoid more unused code in the *built*pdf.renderer.mjsfile (PR 22101 follow-up) mozilla/pdf.js#22337Util.pointBoundingBoxhelper in themeshUpdateBoundsfunction by @Snuffleupagus in Use theUtil.pointBoundingBoxhelper in themeshUpdateBoundsfunction mozilla/pdf.js#22299calculationOrderIdsgetter a little bit by @Snuffleupagus in Shorten thecalculationOrderIdsgetter a little bit mozilla/pdf.js#22344Glyph.prototype.originalCharCodeproperty when debugging by @Snuffleupagus in Only set theGlyph.prototype.originalCharCodeproperty when debugging mozilla/pdf.js#22350Lexeron invalid operators/numbers (bug 2086012) by @Snuffleupagus in Advance the position in the PostScriptLexeron invalid operators/numbers (bug 2086012) mozilla/pdf.js#22365Lexer.prototype.nextmethod by @Snuffleupagus in Reduce duplication in the PostScriptLexer.prototype.nextmethod mozilla/pdf.js#22377DOMSVGFactoryfor all annotationLayers by @Snuffleupagus in Lazily create a singleDOMSVGFactoryfor all annotationLayers mozilla/pdf.js#22408AnnotationLayerBuilder.prototype.#initAnnotationLayermethod by @Snuffleupagus in Inline theAnnotationLayerBuilder.prototype.#initAnnotationLayermethod mozilla/pdf.js#22409