fix(deps): update dependency pdfjs-dist to v2.16.105 #7
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:
2.5.207
->2.16.105
Release Notes
mozilla/pdf.js (pdfjs-dist)
v2.16.105
Compare Source
This release features bugfixes and accessibility improvements for the new experimental editor mode in the viewer as introduced in the previous release.
Changes since v2.15.349:
#15252 Bump versions in
pdfjs.config
#15251 Ignore too small page-canvases in
PDFThumbnailView.setImage
#15253 [api-minor] Update the minimum supported Safari version
#15263 Always set a border-radius for RadioButton annotations (issue 15262)
#15264 [Editor] Add some telemetry to know how often the editing features are used (bug
1782254
)#15268 Fix a typo in firefox print service (bug
1777693
)#15271 Skip unknown fields when calculating a value in using AFSimple_Calculate
#15267 [Annotation] Add a div containing the text of a FreeText annotation (bug
1780375
)#15274 [Editor] A pasted FreeText editor was missing when printing/saving
#15275 [Editor] Remove some a11y properties only useful when a FreeText editor is edited
#15282 Enable the ESLint
prefer-spread
rule#15261 Don't include
images/toolbarButton-editorInk.svg
in thegulp components
build (issue 15260)#15281 Remove
mozCurrentTransform
/mozCurrentTransformInverse
usage#15283 [api-minor] Sort PopupAnnotations already on the worker-thread (PR 11535 follow-up)
#15284 Update packages and translations
#15287 [Editor] Remove use of innerHtml
#15290 Fix OTS issue with empty index (#15289)
#15295 [Editing] Disable buttons until the first page is rendered
#15296 Move the
reset
-calls to occur last in the toolbar-constructors#15297 [Editor] Avoid creation of an editor on "wrong" clicks
#15298 [Editor] Ensure an ink editor has the minimal required size after having been pasted
#15279 Remove the
extensions/firefox/README.mozilla
file (bug1778567
follow-up)#15299 Add official support for passing
ArrayBuffer
-data togetDocument
(issue 15269)#15237 [Annotations] Add some aria-owns in the text layer to link to annotations (bug
1780375
)#15307 [Annotation] Add an aria role comment for FreeText annotations
#15309 Remove the remaining closure in the
src/core/function.js
file#15306 Only compile Type3 glyphs when
Path2D
is supported#15300 [GENERIC viewer] Export some viewer constants in the default viewer (issue 15294)
#15311 Don't add
aria-owns
attributes for non-existent elements (PR 15237 follow-up)#15310 Remove the remaining closures in the
src/core/cff_parser.js
file#15313 Move
binarySearchFirstItem
back to theweb/
-folder (PR 15237 follow-up)#15319 Refresh the viewer if the window resolution changes (bug
1784850
)#15318 A couple of small
PDFWorker
changes#15315 Remove the remaining closures in the
src/core/type1_parser.js
file#15325 Ignoring "resize" events during printing (issue 15324)
#15327 Correctly mimic the proper event-format in
AnnotationElement._setDefaultPropertiesFromJS
(bug1785218
)#15329 [api-minor][Annotations] charLimit === 0 means unlimited (bug
1782564
)#15338 Update packages and translations
#15332 [api-minor] Add the Babel
targets
-option to avoid transpiling code for unsupported browsers#15335 Ensure that we don't try to re-open, or update the password-callback, when the password dialog is already open
#15348 [editor] Change the focus-outline to blue (bug
1787296
)#15347 Update types in PDFPageViewOptions to properly declare optional parameters
#15355 Always focus the
viewerContainer
when entering PresentationMode (bug1787456
)#15344 Enable the
unicorn/prefer-array-find
ESLint plugin rule#15343 Use
AbortController
unconditionally with the Fetch API#15341 Improve handling of the "Cancel"-button in the password dialog
#15346 [api-minor] Deprecate the
imageLayer
functionality#15351 [api-minor][editor] Indicate, in the title, if the document has been edited (bug
1785854
)#15349 [editor] Remove the
editorNone
toolbar button (bug1787295
)#15356 Update the Node.js
atob
/btoa
compatibility infov2.15.349
Compare Source
This release features rendering quality improvements and a new experimental editor mode in the viewer, providing users with basic PDF editing functionality such as inserting annotations.
Changes since v2.14.305:
#14919 Bump versions in
pdfjs.config
#14920 Update packages and translations
#14921 Adjust the heuristics for handling of incomplete path operators (issue 14917)
#14898 [api-minor] Use a CSS transform to update the progress bar instead of changing the width (bug
1768481
)#14945 Allow to have float numbers when getting image information in reftest-analyzer
#14947 Twitter should be capitalized.
#14929 Display background when printing or saving a text widget (issue #14928)
#14926 Remove the
sourceEventType
from the viewer (bug1757771
follow-up)#14948 Set 'dropEffect' based on 'effectAllowed' for drag-and-drop in the viewer (issue 14942)
#14950 [JS] Format all the fields if any when the document is open (bug
1766987
)#14955 Skip bogus
d1
operators in Type3-glyphs (issue 14953)#14957 Introduce a viewer constant for
document.documentElement.style
#14959 Support custom
pageColors
in the thumbnails (PR 14874)#14965 Support Hangul syllables when searching some text (bug
1771477
)#14936 Set the text fields font size based on their height
#14966 Use globalThis for webpack's output.globalObject instead of this
#14963 Handle CSS-comments correctly in the
preprocess
-function (PR 14886 follow-up)#14964 Ensure that the
contentDispositionFilename
is always respected, when setting the document title (PR 13014 follow-up)#14962 Improve the
PDFSidebar
implementation#14967 Update packages and translations
#14968 A small memory-usage improvement for PDF documents opened from TypedArray-data
#14980 Handle CSS-comments better in the preprocess-function (PR 14963 follow-up)
#14976 [editor] Add a FreeText editor (#14970)
#14988 Remove mention of
gulp singlefile
-command fromexamples/node/getinfo.js
#14985 [editor] A couple of small FreeText-related fixes (PR 14976 follow-up)
#14984 Bundle the
<dialog>
polyfill-CSS in the GENERIClegacy/
-viewer (PR 14710 follow-up)#14991 [editor] Disable the editor-buttons in XFA documents
#14992 Lookup image-data correctly in
paintImageMaskXObjectGroup
(issue 14990)#14993 [editor] Update the
AnnotationStorage.hash
-getter to support editing#14994 Conditionally bundle
gulp image_decoders
-specific code insrc/core/jbig2.js
(PR 9729 follow-up)#14998 Reset all the canvas states after rendering each annotations (#14105)
#15000 Outline fields which are required (bug
1724918
)#15001 Set "presentation" role for page canvases (issue 14437)
#15003 Change the name of the generated pdf.sandbox.external for mozilla-central
#14978 [editor] Add support for saving a newly added FreeText
#15008 Polyfill
Array.prototype.at
with core-js (PR 14976 follow-up)#15011 Fix a couple of old review comments
#15013 Render PopupAnnotations even if they have missing or empty /Rect-entries (issue 15012, PR 14439 follow-up)
#14989 [editor] Add an Ink editor
#15006 [editor] Add support for saving newly added Ink
#15019 Revert "Change the name of the generated pdf.sandbox.external for mozilla-central"
#15015 Extend TextLayerRenderParameters.container type to include HTMLElement.
#15020 Add an empty entry in combo list when nothing is selected (bug
1773680
)#15014 Enable the
unicorn/prefer-at
ESLint plugin rule (PR 15008 follow-up)#15018 Expose
TextLayerRenderTask
in the TypeScript definitions (issue 15016, PR 14013 follow-up)#15022 Tweak the
editorNone
icon to circumvent the "duplicated files"-check#15026 [api-minor] Stop using the
beginAnnotations
/endAnnotations
operators (PR 14998 follow-up)#15027 Remove superfluous trailing arguments from
parseFloat
-calls (PR 14978 follow-up)#15029 Enable the
unicorn/prefer-dom-node-append
ESLint plugin rule#15023 Enable the
unicorn/prefer-array-flat
andunicorn/prefer-array-flat-map
ESLint plugin rules#15028 [api-minor] Update the minimum supported browsers/environments
#15030 Update packages and translations
#15031 Enable the
unicorn/prefer-modern-dom-apis
ESLint plugin rule#15034 Extend
getGlyphMapForStandardFonts
with some Hebrew entries (issue 15033)#15046 Add basic support for non-embedded ArialUnicodeMS fonts (issue 15044)
#15050 [Editor] - Add the ability to directly draw after selecting ink tool
#15051 Fix "Good Beginner Bugs" link
#15054 [JS] Hide field borders and buttons (#15053)
#15035 Use modern DOM methods a bit more (PR 15031 follow-up)
#15048 Only define the
renderer
-option in the GENERIC viewer#15052 Simplify setting the
defaultUrl
-option in the CHROME viewer (PR 12470 follow-up)#15057 Replace element
id
s with custom attributes for Widget-annotations (issue 15056)#15036 [api-minor] Get rid of CSS transform on each annotation in the annotation layer
#15058 [api-minor] Remove the "baseviewerinit" event since it's unused (PR 14324 follow-up)
#15059 Reduce unnecessary usage of
Array.prototype.concat()
#15065 Popup trigger area must filled its parent (fix #15063)
#15064 Avoid having overflowing sections (#15036 follow-up)
#15062 Simplify the
newRefs
computation in the "SaveDocument"-handler in the worker-thread#15071 Add an outline around popup trigger areas in ref-tests
#15074 Only activate ink editor if none is selected
#15069 Ensure that the annotationLayer has the correct dimensions (PR 15036 follow-up)
#15075 [editor] Support disabling of editing when
pdfjs.enablePermissions
is set (issue 15049)#15060 Rotate annotations based on the MK::R value (bug
1675139
)#15047 [Editor] Add support for printing newly added Ink annotations
#15076 Enable the
prefer-array-index-of
ESLint plugin rule#15081 Fix (obvious) typo in typedef-import of
IPDFXfaLayerFactory
(PR 14373 follow-up)#15082 [Editor] Add support for printing newly added FreeText annotations
#15089 Correctly order added annotations when saving or printing
#15043 [api-minor] Introduce a
PrintAnnotationStorage
with frozen serializable data#15093 [JS] Update siblings when a field is updated after a calculation (#15092)
#15097 Fix unit test (#15093 follow-up)
#15095 Add (basic) support for Optional Content in Annotations
#15101 Use the built
components/pdf_viewer.css
file in the reference tests#15099 Remove element
id
s from the layersView in the sidebar#15100 chore: Included githubactions in the dependabot config
#15103 chore: Set permissions for GitHub actions
#15088 Support rotating editor layer
#15104 Update translations and dependencies to the most recent versions
#15105 Always flush the current item with MarkedContent stuff when getting text (#15094)
#15039 [editor] Add some UI elements in order to set font size & color, and ink thickness & color
#15113 [editor] Introduce a proper
annotationEditorMode
option/preference (PR 15075 follow-up)#15111 Add a visible page border in HCM (bug
1776914
)#15116 Fix the
annotationEditorMode
-compatibility for older browsers (PR 15113 follow-up)#15117 [Editor] Set the freetext editor dimensions when the changing the font size
#15118 [Editor] Allow to select a freetext editor when in ink mode
#15115 [Editor] Handle correctly colors when saving a document in HCM
#15122 [editor] Tweak
@media
CSS rules to account for the new toolbar buttons#15123 [editor] Disable editing while PresentationMode is active
#15121 [api-minor] Further modernize the
ProgressBar
class (PR 14918 follow-up)#15126 [Editor] Update the id for a l10n string
#15125 Fix the Popup-trigger for
FileAttachmentAnnotationElement
(PR 15036 follow-up)#15124 Call
AnnotationLayer.setDimensions
as part of therender
/update
-methods (PR 15036 follow-up)#15133 Improve text-selection for Type3 fonts with bogus /FontBBox-entries (issue 14999)
#15130 [Editor] Dispatch an event when some global states are changing (bug
1777695
)#15142 [editor] Use the
fit-curve
package (issue 15004)#15144 [Editor] Allow editors deletion on Backspace or Delete keys
#15146 [Editor] Change the cursor to a pen for the Ink editor
#15143 [jsdoc] failing typescript builds - wrong type
#15147 [Editor] Avoid to resize and redraw the ink canvas when it's useless
#15135 Use default colors only in forced-colors mode (bug
1778068
)#15151 [Editor] Remove useless and faulty code when destroying the global manager
#15152 Ensure that the /Resources-entry is actually a dictionary (issue 15150)
#15153 [Annotation] A push button can have no action (bug
1778692
)#15145 [api-minor] Deprecate the
enhanceTextSelection
functionality#15155 Update packages and translations
#15154 Replace element
id
s with custom attributes in the xfaLayer#15158 Update
ttx
from version 2.5 to version 3.19.0#15159 [Editor] Avoid to have the ink editor smaller than the resizer (bug
1778982
)#15163 [Editor] Always have an ink editor (when in ink mode)
#15162 Enable the
unicorn/prefer-logical-operator-over-ternary
ESLint plugin rule#15157 Add unicode mapping in the font cmap to have correct chars when printing in pdf (bug
1778484
)#15168 Disable canvas acceleration for linux tests
#15169 Handle errors in the "Loading by ref" code-path in
PartialEvaluator.loadFont
#15170 [JS] Embedded JS scripts can have some null chars
#15173 [api-minor] Deprecate the SVG back-end
#15184 [Editor] Simplify the way to create an editor on click
#15179 [Editor] Use serialized data when copying/pasting
#15174 Use more
for...of
loops in the code-base#15110 [Editor] Improve a11y for newly added element (#15109)
#15187 [Editor] Remove useless and potentially deleted editors
#15185 [Editor] Ink editor was too much translated after commit
#15186 [Editor] Move the keyboard manager at the container level
#15192 Ignore invalid /CIDToGIDMap-entries when parsing fonts (issue 15139)
#15195 [Editor] No need to click twice to create an editor when the last one is empty
#15199 Bump terser from 5.14.1 to 5.14.2
#15196 [Editor] Add a z-index in order to draw them in the right order
#15183 Remove the
svgviewer
example#15206 [Editor] Simplify the command manager
#15200 [Editor] Add the ability to make multiple selections (bug
1779582
)#15210 [Editor] Unselect correctly removed editors
#15188 [Editor] Replace mouse events by pointer ones (bug
1779015
)#15211 [Editor] Fix multi-selection on touch screens
#15214 Update packages and translations
#15218 [Editor] Fix few keyboard shortcuts on mac
#15221 Support images with /Filter-entries that contain Arrays (issue 15220)
#15230 [Editor] Avoid editor creation/selection on right click (bug
1781762
)#15231 [Editor] Don't set as active an editor which is not (bug
1781763
)#15219 [Editor] Add the possibility to change line opacity in Ink editor
#15233 [Editor] Avoid to add unexpected commands in the undo/redo queue when undoing/redoing (bug
1781790
)#15234 [Editor] Reset the queue when a command is added after having undone all the commands
#15217 [Editor] Simplify the strings for the tools in the UI
#15236 Set
opacity
in the reference tests (PR 15219 follow-up)#15235 Ensure that the
isUsingOwnCanvas
-parameter is consistently included in operatorLists (PR 14247 follow-up)#15232 Fix text selection with hdpi screens (#15229)
#15238 Fix wrong order of arguments when calling the CipherTransform ctor (bug
1782186
)#15240 [api-minor] Change the various factories, in the viewer, to accept Objects
#15242 [Editor] Avoid to slightly move ink editor when undoing/redoing
#15244 [Editor] Add an editor in the annotation storage only when it's non-empty (#15241)
#15215 [api-minor] Improve how we disable
PDFThumbnailView.setImage
for documents with Optional Content#15248 Update l10n files
#15247 Misc. small CSS cleanup
#15246 [api-minor] Improve
thumbnail
handling in documents that contain interactive formsv2.14.305
Compare Source
This release features improvements for the text layer (space insertion), canvas rendering (thin line rendering), forms (printing/saving of choice lists) and accessibility (sidebar and search results). Moreover, this release contains performance improvements for rendering image masks, Type3 fonts and certain drawing instructions. Finally, the user can now specify custom background/foreground colors for rendering in the viewer.
Changes since v2.13.216:
#14614 Bump versions in
pdfjs.config
#14536 Fix some issues with lineWidth < 1 after transform (bug
1753075
, bug1743245
, bug1710019
)#14615 Remove the
-webkit-overflow-scrolling: touch;
CSS rules (PR 4516 follow-up)#14617 Remove the
-webkit-outer-spin-button
CSS rule#14623 Remove some deprecated code from the viewer
#14624 Simplify the
fallback
-logic in the default viewer#14629 Compute the loca table
endOffset
, of the "first" glyph, correctly (issue 14618)#14631 Fix a couple of small typos in JSDoc
typedef
comments#14628 When
stopAtErrors
is set, throw rather than warn when exceedingmaxImageSize
(issue 14626)#14634 Replace XMLHttpRequest usage with the Fetch API in
Driver.run
#14633 Update packages and translations
#14635 Replace XMLHttpRequest usage with the Fetch API in
loadStyles
(intest/driver.js
)#14638 Replace XMLHttpRequest usage with the Fetch API in the reftest-analyzer
#14637 Use proper private methods in
web/{pdf_cursor_tools,pdf_find_bar,secondary_toolbar}.js
#14636 Replace XMLHttpRequest usage with the Fetch API in
Driver._quit
#14640 Update TypeScript to version
4.6.2
and work-around stricter type checks#14648 Simplify the
PDFDocument
constructor#14645 [api-minor] Remove the, in
legacy
builds, bundledDOMMatrix
polyfill#14642 Replace XMLHttpRequest usage with the Fetch API in
Driver._send
#14651 Replace XMLHttpRequest usage with the Fetch API in
inlineImages
(intest/driver.js
)#14620 Bug
1757527
- Slightly reduce (repeated) message passing overhead when localizing the PDF Viewer#14554 Try to improve a11y for the "button groups" in the SecondaryToolbar/Sidebar (issue 14526)
#14654 Replace XMLHttpRequest usage with the Fetch API in
send
(intest/unit/testreporter.js
)#14656 Move the
isSameOrigin
helper function#14658 Validate the
cMapUrl
/standardFontDataUrl
parameters ingetDocument
#14661 Update Checkout to version 3
#14667 Enable the "gets fieldObjects" unit-test in Node.js (PR 14409 follow-up)
#14668 Remove the
addLinkAttributes
warnings in the Annotation/XFA-layers (PR 14092 follow-up)#14665 Convert the
BasePreferences
class to use private fields#14669 Replace
dir
-dependentpadding-left
/padding-right
/text-align
with logical properties#14676 Remove the custom
grab
/grabbing
cursor image files#14678 Convert the
PDFDocumentProperties
class to use private methods#14675 Build the
web/viewer.css
file used in the development viewer (i.e.gulp server
)#14682 [gulpfile.js] Use the regular
defines
in thepreprocessCSS
function#14688 Add general iteration support in the
RefSet
andRefSetCache
classes#14683 [src/display/api.js] Simplify the
sendTest
function, used with Worker initialization (PR 14291 follow-up)#14689 Slightly simplify the
PDFFindController._extractText
method, and convert all "private" methods into proper ones#14670 Replace
dir
-dependentmargin
/margin-left
/margin-right
with logical properties#14671 Replace
dir
-dependentfloat
with logical properties#14692 [JS] - Parse a date in using the given format first and then try the default date parser
#14695 Update packages and translations
#14690 Replace
dir
-dependentleft
/right
with logical properties#14704 Convert the
OverlayManager
class to use private fields/methods#14699 Slightly improve validation of (some) parameters in
getDocument
#14691 Replace
dir
-dependentborder
-rules with logical properties#14693 Remove the remaining
dir
-dependent CSS rules#14717 Change the type of the
container
property, in theTextLayerRenderParameters
typedef (issue 14716)#14715 Avoid the
textLayer
becoming visible in high contrast mode (issue 13230)#14703 [text selection] Add the whitespaces present in the pdf in the text chunk
#14720 [Annotations] Add support for printing/saving choice list with multiple selections
#14710 Convert the existing overlays to use
<dialog>
elements (issue 14698)#14733 Use
String.prototype.repeat()
in a couple of spots#14735 [Annotations] Some annotations can have their values stored in the xfa:datasets
#14734 Don't manually convert
setAttribute
values to strings (PR 14554 follow-up)#14738 Decode non-ASCII values found in the xfa:datasets (PR 14735 follow-up)
#14742 Replace most loops in
web/debugger.js
withfor...of
loops#14744 Update GitHub Actions workflow steps/dependencies/translations to the most recent versions
#14745 Convert
web/debugger.js
to a basic module#14739 Refactor some xfa*** getters in document.js
#14663 [GENERIC viewer] Try to improve a11y, for search results, in the findbar (issue 14525)
#14761 Use a bit more optional chaining in the viewer
#14751 Re-factor the
isLittleEndian
/isEvalSupported
caching#14750 Remove the
BaseViewer._getCurrentVisiblePage
helper method#14754 [api-minor] Improve performance with image masks (bug 857031)
#14766 Improve performance of applyMaskImageData
#14764 Correct typos
#14765 Simplify handling of
requestFullscreen
errors inPDFPresentationMode
#14767 [GENERIC viewer] Re-factor the
fileInput
initialization#14769 Remove unnecessary
@media
CSS rules (PR 8993 follow-up)#14770 Always remove the
sidebarMoving
CSS class when the sidebar is closed#14771 Simplify the
dialog::backdrop
CSS rules (PR 14710 follow-up)#14772 Remove/simplify some CSS rules
#14773 Remove some
dropdownToolbarButton
-related CSS rules#14780 Replace the
--viewport-scale-factor
CSS variable#14722 PDFScriptingManager: Bind mousedown listener with capture=true
#14784 Improve performance of shared/utils.js::intersect (bug
1135277
)#14785 Update
core-js
to allow removing astructuredClone
work-around#14777 [api-minor] Improve performances with image masks (bug 857031)
#14796 [api-minor] Simplify min/max computations in constructPath (bug
1135277
)#14797 Don't clip when the clip path is empty (issue #12306)
#14799 Fix clipping issue with pattern (follow-up of #14797)
#14788 Move the
PDFBug
-related CSS fromviewer.css
and into its own file#14790 Remove some outdated CSS rules related to printing
#14792 Update packages and translations
#14795 Reduce more duplication in the CSS
#14793 Simplify spread-mode handling for the PAGE scroll-mode
#14801 [GENERIC viewer] Simplify the styling of the previous/next findbar buttons
#14803 Add support for the /Catalog Base-URI when resolving URLs (issue 14802)
#14794 Remove the PresentationMode special-case from
BaseViewer.update
#14810 Stop bundling
errorWrapper
CSS rules in the MOZCENTRAL build#14817 Some more, small, CSS clean-up
#14818 Use correct case for JavaScript
#14815 Ignore non-Stream /SMask-entries when parsing images (issue 14814)
#14828 Use more
for...of
loops in the viewer#14827 Simplify setting of spacing at the left/right edges of the toolbar(s)
#14823 Ignore invalid /Encoding-entries when parsing fonts (issue 14821)
#14825 Ensure that worker-thread image caching doesn't break optional content (issue 14824)
#14829 Remove unnecessary
print
CSS rules#14831 Add a helper function for incrementing the
count
of cached ImageMasks#14836 Don't use pref 'browser.download.improvements_to_download_panel' in Firefox (#14822)
#14848 Support destinations in NameTrees with encoded keys (issue 14847)
#14833 Stop bundling the openFile-buttons in the MOZCENTRAL build
#14835 Clean-up some CSS rules for the various toolbar separators
#14856 [api-minor] Remove the
forceClamped
-functionality in the Streams (issue 14849)#14853 Use integer coordinates when drawing images (bug
1264608
, issue #3351)#14854 Remove redundant class names from the button DOM-elements
#14857 Inline the
webViewerOpenFileViaURL
function inwebViewerInitialized
#14860 Update dependencies and translations
#14858 Use
Path2D
, if available, when rendering Type3-fonts (bug 810214)#14861 Pin the
es-module-shims
dependency to version 1.4.7#14863 Update quickjs to revision
2788d71
#14865 Support encoded dest-strings in /GoTo destination dictionaries (issue 14864)
#14866 Immediately release the temporary
Uint8Array
s used during Type3-compilation#14869 [JS] Fix few bugs present in the pdf for issue #14862
#14873 Replace the
AnnotationStorage.lastModified
-getter with a proper hash-method#14870 Only bundle the
src/display/node_utils.js
file in GENERIC-builds#14871 Re-factor the PresentationMode handling in
BaseViewer.#ensurePageViewVisible
#14874 [api-minor] Improve pdf reading in high contrast mode
#14877 Add (basic) support for Spread modes in PresentationMode (issue 14749)
#14880 Introduce a
--viewer-container-height
CSS variable to simplify the code#14884 Simplify the "fileattachmentannotation"-event handling a little bit
#14882 Add support for TrueType format 12
cmap
s (issue 14881)#14887 Ignore
pageColors
when the background/foreground is identical (PR 14874 follow-up)#14885 Stop bundling
PDFViewerApplication.{unbindEvents, unbindWindowEvents}
in MOZCENTRAL builds#14888 Try to fix dispatching of "attachmentsloaded"-events, when the document contains no "regular" attachments (PR 8788, 12163 follow-up)
#14886 Use the regular
preprocess
-function for the CSS files as well#14890 [JS] Formatted value has to be a string when neither null nor undefined
#14903 Update the
preprocess
-function to avoid adding trailing new-lines (issue 14902)#14904 Avoid the
preprocess
-function adding consecutive blank lines#14899 [api-minor] Include line endings in Line/Polyline Annotation-data (issue 14896)
#14894 Try to remove the
mozOpaque
canvas-property (PR 6551 follow-up)#14911 Use
TypedArray.prototype.fill()
a bit more in the code-base#14910 Ensure that setting the width of the zoom dropdown works correctly (PR 14028 follow-up)
#14918 [api-minor] Modernize and simplify the
ProgressBar
classv2.13.216
Compare Source
This release features improvements for searching in the viewer: searching with/without diacritics, arbitrary whitespace matching, searching for hyphenated words when linebreaks are present and searching around punctuation characters. Moreover, this release contains many bugfixes and optimizations, in particular for annotations, font/image conversion, SMask rendering, text layer rendering and TypeScript definitions.
Changes since v2.12.313:
#13261 [api-minor] Support search with or without diacritics (bug
1508345
, bug 916883, bug1651113
)#14389 Bump versions in
pdfjs.config
#14388 Unblock the "load" event in inactive windows/tabs (bug
1746213
, PR 11646 follow-up)#14401 Update packages and translations
#14391 Handle non-integer Annotation border widths correctly (issue 14203)
#14400 [api-minor] Convert
Catalog.getPageDict
to an asynchronous method#14409 Improve caching for the
Catalog.getPageIndex
method (PR 13319 follow-up)#14411 Convert
Catalog.getAllPageDicts
to anasync
method#14413 Drop the beta logic from the Gulpfile/website/
pdfjs.config
file#14417 Revert "Disable failing print actions integration test in Firefox"
#14418 Use positive dimensions for text chunks in the text layer (issue #14415)
#14429 [JS] Fix few errors around AFSpecial_Keystroke
#14423 Remove the
eventBus
parameter fromgetViewerConfiguration
#14424 [api-minor] Move
addLinkAttributes
,LinkTarget
, andremoveNullCharacters
into the viewer (PR 14092 follow-up)#14432 Update packages and translations
#14443 Prevent run-time errors in
BaseViewer
when it's falling back toSimpleLinkService
(issue 14442, PR 14295 follow-up)#14450 Add (basic) UTF-8 support in the
stringToPDFString
helper function (issue 14449)#14446 Expose even more API-functionality in the TypeScript definitions (issue 14435, PR 14013 follow-up)
#14454 Replace some
assert
usage withunreachable
in thesrc/shared/util.js
file#14453 Dispatch a "documenterror" event in
PDFViewerApplication._documentError
(issue 14451)#14439 Ignore Annotations with empty /Rect-entries in the display-layer (issue 14438)
#14448 Prevent circular references in Type3 fonts
#14428 Use the correct dimension to know if we have to add an EOL in vertical mode
#14455 Make the
normalizeWhitespace
handling, in thePartialEvaluator
, more efficient (PR 14428 follow-up)#14457 Implement a unit test for
getCharUnicodeCategory
insrc/core/unicode.js
(PR 14428 follow-up)#14456 Font renderer - get int8 instead of uint8 in composite glyphes (bug
1749563
)#14464 Support Type1 font files with incomplete /CharStrings definitions (issue 14462)
#14430 [JS] Use beforeinput event to trigger a keystroke event in the sandbox
[#14487](https://redirect.github.com/mozilla/pdf.js/iss
Configuration
📅 Schedule: Branch creation - "* 0-3 1 * *" in timezone Europe/Paris, 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.