PDF.js v2.2.228 Release Notes
Release Date: 2019-07-10 // almost 5 years ago-
#10557 Bump versions in
pdfjs.config
๐ #10556 [api-minor] Expose the existence of aCollection
dictionary via thegetMetadata
API method (issue 10555)
โก๏ธ #10554 Simplify theupdatetextlayermatches
event handling inTextLayerBuilder
0๏ธโฃ #10548 Generate thedefault_preferences.json
file fromAppOptions
โ #10558 Re-factor thePDFDataRangeTransport
unit-tests and enable them in Node.js/Travis
โก๏ธ #10560 Update translations and packages
#10579 Re-factor thePDFSidebar
constructor to simplify its call-site (PR 10123 follow-up)
#10578 Try to temporarily hack around the__non_webpack_require__
bug, and update Webpack to the latest stable version (issue 10177)
๐ #10577 Move worker-thread only functions fromsrc/shared/util.js
and into a newsrc/core/core_utils.js
file
#10582 UsePromise.prototype.finally
in thePDFRenderingQueue.renderView
method
โ #10589 Run thecustom_spec
unit-tests in Node.js/Travis (PR 10537 follow-up)
#10585 Load built-in CMap files using the Fetch API when possible
#10573 Avoid truncating/breaking some Type3 glyphs incompileType3Glyph
(bug 1245391, issue 10568)
โก๏ธ #10599 Update Webpack to the latest stable version (4.29.6)
#10597 Ensure that the temporary canvas created inCanvasGraphics.isFontSubpixelAAEnabled
will be cleared
#10595 Zero the width/height of the temporary canvas used duringJpegDecode
(issue 10594)
#10591 Add unique glyph names for CFF fonts.
#10601 Zero the width/height of the temporary canvas used duringTextLayer
rendering
#10604 Put the string name of the glyph in the charset array.
โก๏ธ #10606 Update translations and packages
๐ #10590 Fix missing moveTos in SVG paths
๐ท #10608 Reduce usage ofDate.now()
insrc/core/worker.js
0๏ธโฃ #10610 Add type validation to thedefault_preferences
generation (PR 10548 follow-up)
โ #10605 Convertlet
toconst
if possible in, and improve unit test coverage for,src/display/display_utils.js
#10615 Handle corrupt ASCII85Decode inline images with whitespace "inside" of the EOD marker (issue 10614)
#10621 Don't scale SVG stroke width by text matrix
๐ #10634 MoveNativeImageDecoder
into a separate file, and convert it to aclass
#10633 ConvertMurmurHash3_64
to an ES6 class
0๏ธโฃ #10628 Try to improve text-selection for Type3 fonts that utilize a non-default /FontMatrix (bug 1513120)
#10636 Small clean-up of thePDFDocumentProxy.destroy
method and related code
#10647 Actually transfer eligible ImageMask data, rather than always copying it
#10644 Ensure thatblob:
URLs will be revoked when pages are cleaned-up/destroyed (JPEG memory usage)
#10646 Implement linear-gradient, radial-gradient and dummy-pattern in SVGGraphics.
โ #10635 Convertsrc/core/parser.js
to ES6 syntax and write more unit tests for the lexer and the parser
โก๏ธ #10657 Update test case description
๐ป #10652 Prepare theMOZCENTRAL
viewer for receiving zoom events from the browser UI (bug 786674, bug 1177385)
๐ #10668 Remove the Firefox-specific 'read with streaming' unit-test
#10681 fix: electron enviroment detection
#10685 Take theFirstChar
/LastChar
properties into account when computing the hash inPartialEvaluator.preEvaluateFont
(issue 10665)
#10683 Use CMap in Type0 fonts when CFF is not a CID font
#10692 Add Mozilla Code of Conduct
โก๏ธ #10698 Update translations/packages and include the code of conduct forpdfjs-dist
too
#10706 Add missinghasChildNodes
polyfill todomstubs.js
(PR 10022 follow-up)
#10675 [Firefox regression] FixdisableRange=true
bug inPDFDataTransportStream
๐ #10713 Removesrc/core/annotation.js
from thegulp jsdoc
build target
๐ #10678 Removemoz-chunked-arraybuffer
support, and related code, fromsrc/display/network.js
๐ #10709 [api-minor] Add basic support for PageLayout in the API and the viewer
โก๏ธ #10714 [Firefox] Ensure that loading progress is reported, and the loadingBar updated, whendisableRange=true
is set
#10674 Convertsrc/display/svg.js
to ES6 syntax and implementsetRenderingIntent
andsetFlatness
for the SVG backend
โ #10715 Add test for fetch_stream
#10725 Attempt to clarify thel10n
section ofCONTRIBUTING.md
#10723 [api-minor] Implement caret annotations
#10728 Annotations - _preparePopup method replaced with MarkupAnnotation
โก๏ธ #10696 UpdateChunkedStream.makeSubStream
to actually check if (some) data exists when thelength
parameter is undefined
#10694 Avoid dispatching range requests to fetch PDF data that's already loaded with streaming (PR 10675 follow-up)
โก๏ธ #10733 Update translations and packages
๐ #10735 [api-minor] Implement free text annotations
#10742 [Firefox] Avoid displaying the indeterminate loadingBar whendisableStream=true
is set (PR 10714 follow-up)
#10746 Add links to PDF.js homepage and API reference in README.md
๐ #10727 Support (rare) Type3 fonts which contains image resources (issue 10717)
#10754 Add agetDocId
method to theidFactory
, inPage
instances, to avoid passing aroundPDFManager
instances unnecessarily (PR 7941 follow-up)
๐ #10738 [api-minor] Add support for ViewerPreferences in the API (issue 10736)
0๏ธโฃ #10765 Addpassive: false
to thewheel
event listener, to work-around broken default behaviour in Chrome 73 and above (issue 10761)
โก๏ธ #10784 Ensure that theOperatorList
constructor actually initializes aNullOptimizer
when intended (PR 9089 follow-up)
#10756 Attempt to handle corrupt PDF documents that contains path operators inside of text object (issue 10542)
#10789 ChangePartialEvaluator.handleColorN
to throw when no valid pattern is found
#10771 [api-minor] Implement creation/modification date for annotations
โก๏ธ #10795 Update thecanvas
npm package to fix Travis CI builds (issue 10790)
๐ #10805 Enable theconsistent-return
ESLint rule
#10794 Fix glyph at index zero in CIDFontType2 that has a CIDToGIDMap stream
๐ #10826 Remove unusedref
property from theparameters
object used when creating annotations inAnnotationFactory._create
#10827 Convert the (remaining) network streams to ES6 classes
๐ง #10854 make print resolution configurable via AppOptions
#10833 [api-minor] Implement contents and creation date for the correct annotation types
โก๏ธ #10859 Update translations and packages
#10862 Add caching to reduce the number ofRef
objects
#10863 Ensure that theCmd
/Name
/Ref
caches are cleared when running othercleanup
code
โช #10869 Restore referrer preserving functionality in Chrome 72+
#10867 Don't clip if path is undefined in SVG back-end
#10872 Re-use, rather than re-creating, someArray
s when resetting them insrc/display/api.js
๐ท #10873 Ensure that theCmd
/Name
/Ref
caches are cleared when terminating the worker (PR 10863 follow-up)
#10877 Ignore Annotations with too large borderwidth
s, to prevent theannotationLayer
from rendering it over the surrounding document (bug 1552113)
๐จ #10879 [api-minor] Attempt to reduce memory usage during printing, by always runningcleanup
once rendering has finished
0๏ธโฃ #10890 Add support for outline items, in the default viewer, which default to collapsed when the outline is built
๐ #10897 Remove a superfluouslinkService.isPageVisible
check fromPDFFindController
(PR 10217 follow-up)
๐จ #10898 Allow experimenting with theprintResolution
AppOption when printing with the built-in Firefox version
๐ #10905 Pin the version ofeslint-plugin-mozilla
to prevent failures on Travis (issue 10901)
๐ #10903 MovePDFWorkerStream
and related code to its own file
๐ #10926 Change the signature of theParser
constructor to take a parameter object
๐ #10925 Enable theeslint-plugin-no-unsanitized
ESLint plugin to disallow unsafe usage of e.g.innerHTML
#10902 Implement tiling patterns for the SVG back-end
โก๏ธ #10936 Update translations and packages
#10938 Reduce the number ofisCmd
calls slightly in theXRef
class
โช #10937 Restore the header size limit of 80 KB
#10947 Make thefind
helper function, insrc/core/document.js
, more efficient by usingpeekBytes
rather reading the stream one byte at a time
#10949 Delay initialization of searching, in the viewer, until the first page has rendered