Update dependency pdfjs-dist to v5 #6988
Open
+1
−1
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.
This PR contains the following updates:
4.8.69
->5.0.375
Release Notes
mozilla/pdf.js (pdfjs-dist)
v5.0.375
Compare Source
PDF.js 5.0 is a major release that contains a number of API changes, features and bugfixes.
The following significant new features are highlighted:
.wasm
file, which requires setting a newwasmUrl
API option in order to use it; see PR https://github.com/mozilla/pdf.js/pull/19329.wasmUrl
API option) for environments without WebAssembly support; see PR https://github.com/mozilla/pdf.js/pull/19525.wasmUrl
API option is set; see PR https://github.com/mozilla/pdf.js/pull/19564.iccUrl
API option in order to use it; see PR https://github.com/mozilla/pdf.js/pull/19620.enableAutoLinking
option/preference; see PR https://github.com/mozilla/pdf.js/pull/19110.The following significant changes are highlighted (which may require changes in third-party PDF.js implementations):
The complete list of changes in this release is shown below. If you're upgrading to PDF.js 5.0 we recommend checking the changes prefixed with
[api-minor]
and[api-major]
since those might require updates to your code.Changes since v4.10.38
pdfjs.config
by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19276getSelectedEditors
integration test helper function by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19277Dict
iteration more (PR 19051 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19278waitForUnselectedEditor
integration test helper function more by @timvandermeij in https://github.com/mozilla/pdf.js/pull/192901940085
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19295MeshShadingPattern
class (issue 18816) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19305FontRendererFactory
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193171935076
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19329MissingPDFException
andUnexpectedResponseException
with one exception by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/192645.0
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19332getDocument
Factory-parameters by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19331getDocument
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193411942064
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19356import/no-restricted-paths
ESLint plugin rule for the viewer by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19353highlightSelection
waits until we've fully updated the editing-mode (issue 19369) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19371ColorPicker
for each PDF document by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19372render
-methods to take parameter objects by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19365isInEditingMode
method (PR 19311 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19381isNumberArray
helper by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19384readInt16
helper function in thesrc/core/core_utils.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193881942343
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19339hasFieldFlag
calls in thesrc/core/annotation.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19393Annotation
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19397AnnotationElement
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19402color-mix
fallback used with PopupAnnotations by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19408pdfjs-dist
(PR 19329 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19415cMapUrl
,standardFontDataUrl
, andwasmUrl
parameters by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194161945574
) by @calixteman in https://github.com/mozilla/pdf.js/pull/194141019475
) by @ryzokuken in https://github.com/mozilla/pdf.js/pull/191101019475
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19429--save-warning-color
CSS variable typo (PR 19414 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19431PLATFORM
function (PR 19414 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19430FeatureTest
helper in thesrc/display/font_loader.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19432getPdfColorArray
helper more in thesrc/core/annotation.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19423TextLayer.#getAscent
fallback (PR 12896 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19399crypto.getRandomValues
unconditionally in thesrc/core/crypto.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19450MeshStreamReader.prototype.readBits
method a little bit by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194461946795
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19437TypedArray.prototype.fill()
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19456borderStyle
of inferred links lazily (PR 19110 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194611946171
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19425userUnit
using CSS, to fix the text/annotation layers (bug1947248
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194691947828
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19478Array.from
usage in theSignatureManager
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19485PDFPageView
helper-method, and dispatch a "linkannotationsadded" event by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194751948116
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19486closeIfActive
method in theOverlayManager
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194871946181
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19427CipherTransformFactory.prototype.#buildObjectKey
method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19496useWorkerFetch
fallback value is always a boolean by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19499eslint-disable
statements in theweb/
folder by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195031948771
) by @calixteman in https://github.com/mozilla/pdf.js/pull/195071948741
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19506arrow-body-style
warnings by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195041949201
) by @calixteman in https://github.com/mozilla/pdf.js/pull/195161949417
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19522JpegStream
(PR 19356 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19518URL.parse()
usage in the code-base by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194931492303
) by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/191281935076
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19525useWorkerFetch
option is used internally by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19537assert
inFontLoader.prototype.loadSystemFont
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195511945827
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19554#renderError
onRenderingCancelledException
(PR 19128 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19558disableFontFace
andfontExtraProperties
as part of the exported font-data by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19548PDFViewerApplication._initializeViewerComponents
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19556PDFViewer
, when closing the document (PR 19128 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19557getGlyphMapForStandardFonts
with some Cyrillic entries (issue 19550) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19562TranslatedFont.prototype.loadType3Data
only once per font by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195631951128
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19584GlobalColorSpaceCache
to reduce unnecessary re-parsing by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19583PDFWorker.fromPort()
by @yjoer in https://github.com/mozilla/pdf.js/pull/19571FakeMLManager
class in regular builds by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19568TypedArray.prototype.fill()
in theRunLengthStream
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19589.error
-file created for broken test-manifest links (issue 19579) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19581isValidExplicitDest
helper function in the worker/viewer by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19577Promise.then
calls by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195971943094
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19604ColorSpaceUtils.parseAsync
and simplify the ColorSpace "API-surface" by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19599ColorSpaceUtils.singletons
handling (PR 19564 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19607opacityToHex
helper function (PR 19093 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19610#savedHasOwnCanvas
handling in theStampAnnotation
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196191952496
) by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/19622MathClamp
helper function more (PR 19617 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19628PDFFunctionFactory.createFromArray
method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19623src/core/crypto.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19629d0
operators, with empty /FontBBox-entries (issue 19624) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19625maxCanvasPixels
option in the thumbnails code by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196351952558
) by @calixteman in https://github.com/mozilla/pdf.js/pull/196361952571
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19637secondaryToolbar
when clicking inside it (PR 18385 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196401953003
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19642Lexer.prototype.getNumber
treat more cases of a single minus sign as zero (bug1953099
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19647TouchManager.prototype.MIN_TOUCH_DISTANCE_TO_PINCH
value by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19646PDF17
andPDF20
crypto classes by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19644OutputScale
static method to get thedevicePixelRatio
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196451953290
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19648src/core/crypto.js
file a little bit by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196501953298
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19649GenericL10n.#getPaths
with simple string parsing by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19657MeshStreamReader
methods by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19656PDFThumbnailView.prototype.#finishRenderTask
helper method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19661v4.10.38
Compare Source
This release contains improvements for accessibility, the annotation editor, font conversion, performance, SMasks and the viewer.
Changes since v4.9.155
pdfjs.config
by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19178PDFNetworkStream
(issue 19075) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19114PDFFindBar
options with theEnter
key (issue 19175) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19185issue14307.pdf
integration tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19192userUnit
into account in thePageViewport
class (issue 19176) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19196Path2D
glyph-objects by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19200Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.