PDF.js v2.3.200 Release Notes
Release Date: 2019-10-03 // over 4 years ago-
๐ Changes since v2.2.228:
#10960 Bump versions in
pdfjs.config
#10963 Ensure thatPDFViewerApplication.{zoomIn, zoomOut}
won't run when PesentationMode is active (PR 10652 follow-up)
๐ #10959 Remove thedata-pdfjsprinting
attribute on the<body>
when destroyingFirefoxPrintService
/PDFPrintService
instances (issue 10948)
#10962 Prevent "Uncaught promise" messages in the console when cancellingTextLayer
tasks (PR 10601 follow-up)
#10964 Bump lodash from 4.17.10 to 4.17.14
๐ #10958 Remove theintentState.receivingOperatorList
boolean since it's redundant
#10850 Scale stroking line width when using a tiling pattern.
#10851 Apply bounding box before using shading patterns.
๐ #10950 Fixed testing webserver to handle paths correctly on Windows
#10966 Add timestamp to the page rendered event.
๐ #10968 Remove uselesswrapReason
calls in theMessageHandler
class
#10970 Simplify, and inline, thefinalize
function in theMessageHandler
class
โ #10969 Add an API unit-test for thestopAtErrors
option (PRs 8240 and 8922 follow-up)
๐จ #10974 Simplify thePDFDocument.fingerprint
method slightly
๐ #10820 Annotations - Added parsing of IRT, RT, State and StateModel
#10987 Bump js-yaml from 3.12.0 to 3.13.1
๐จ #10990 Refactor theonBeforeDraw
/onAfterDraw
functionality used inBaseViewer
andPDFPageView
#10979 [Firefox] Re-factor the 'zoomreset' message handling in the viewer (PR 10652 follow-up)
#10986 Attempt to significantly reduce the number ofChunkedStream.{ensureByte, ensureRange}
calls by inlining thethis.progressiveDataLength
checks at the call-sites
#10993 Add thedocBaseUrl
API parameter toAppOptions
in the viewer
๐ #10995 Remove an unnecessaryPDFDocumentProperties.setFileSize
call, relevant for the Firefox built-in viewer, and use the "normal" code-path inPDFViewerApplication.open
instead
๐ #11001 Inline theisCmd
check in theParser.shift
method
#10996 Avoid creating aPDFFindBar
instance, in the Firefox built-in viewer, when not actually necessary
๐ #11003 Ensure that setting thezoomDisabledTimeout
isn't skipped, regardless of the supported zoom keys, when handling mouse wheel events (PR 7097 follow-up)
#11012 Reduce the number of function calls inEvaluatorPreprocessor.read
#11019 Decode URL encoded filenames from content disposition headers
#11020 Add a work-around, inglyphlist.js
, for bad PDF generators which use a non-standard/f_f
string in theEncoding
dictionary when referring to the ff ligature (issue 11016)
#11033 Ensure that the loading indicator, in the pageNumber input, is hidden when the viewer is closed
โก๏ธ #11029 [api-minor] Update telemetry to use 'categorical' histograms.
#11034 Ensure thatReadableStream
s are cancelled with actual Errors
#11038 [api-minor] Fix completely brokengetStats
method by returning stats in Objects, rather than in Arrays (PR 11029 follow-up)
#11013 [api-minor] Implement quadpoints for annotations in the core layer
#11048 Use more compact keys inPDFLinkService._pagesRefCache
#11049 Add page rendered timestamp to telemetry.
๐ #11047 Support corrupt PDF files with invalid/non-existent Group /CS entries (issue 11045)
#11051 Actually compare thecropBox
andmediaBox
correctly in thePage.view
getter
#11057 Handle some corrupt/truncated JPEG images that are missing the EOI (End of Image) marker (issue 11052)
#11059 Fallback gracefully when encountering corrupt PDF files with empty /MediaBox and /CropBox entries
๐ #11062 Miscellaneous small clean-up of code in theweb/
folder
#11064 Convert thesrc/shared/util.js
file to ES6 syntax
๐ #11070 Inline theisString
check in theParser.getObj
method
๐ #11073 Move polyfill for codePointAt to String prototype.
#11076 Replace theXRef.cache
Array with a Map instead
#11081 added in information about pdfjs/webpack
๐ #11079 [TextLayer] Only cache the currenttextDiv
style whenenhanceTextSelection
is enabled and use template strings inexpandTextDivs
#11087 Add a way to disable external links.
#11086 [TextLayer] Only cache theoriginalTransform
whenenhanceTextSelection
is enabled
#11091 [TextLayer] Only handle positive padding values inexpandTextDivs
๐ #11090 [TextLayer] Use an Array to build the totaltransform
, rather than concatenating Strings, inexpandTextDivs
๐จ #11093 Shorthand afterPrint signature in app.js
๐ #11092 [TextLayer] Use an Array to build the totalpadding
, rather than concatenating Strings, inexpandTextDivs
#11069 Use streams for OperatorList chunking (issue 10023)
โก๏ธ #11096 Update translations/packages and upgrade toeslint
version 6
โ #11095 Include a reduced, non-linked PDF file for the attachments API unit test
#11097 [TextLayer] Only measure the width of the text, in_layoutText
, for multi-char text divs
#11102 Bump mixin-deep from 1.3.1 to 1.3.2
โก๏ธ #11104 [TextLayer] Avoid unnecessary font updates in_layoutText
and removesetAttribute
usage inappendText
#11107 VariousMessageHandler
improvements when using Streams
๐ #11110 Remove support for thescope
parameter in theMessageHandler.on
method
#11111 Inline theresolveCall
helper function at its call-sites inMessageHandler
๐ #11112 Remove the API/Worker version warning message inTESTING
mode
#11108 Use more ES6 syntax in the annotation code
#11115 Ensure thatError
s are handled correctly when usingpostMessage
with Streams inMessageHandler
๐ #11123 [api-minor] Remove thepostMessageTransfers
parameter, and thus the ability to manually disable transferring of data, from the API
๐ท #11118 Transfer, rather than copy, CMap data to the worker-thread
โก๏ธ #11127 Update theeslint-plugin-mozilla
to the latest version (PR 10905 follow-up)
#11129 Prevent "offsetParent is not set -- cannot scroll" errors when the viewer loads in e.g. a hidden <iframe>
๐ #11133 Enable theno-async-promise-executor
ESLint rule
๐ท #11130 Don'tenqueue
unused properties when sending 'GetOperatorList' data from the worker-thread (PR 11069 follow-up)
#11138 [CRX] Ignore auto-generated from Chrome
#11134 Ensure thataddLinkAttributes
is always called with a validurl
parameter
0๏ธโฃ #11142 Stop dispatching a "localized" event from the webL10n library, since it's unused and may clash with the default viewer
๐ท #11106 Abort, with a small delay,getOperatorList
on the worker-thread when rendering is cancelled (PR 11069 follow-up)
โก๏ธ #11145 Update translations and packages
#11155 Miscellaneous (small) clean-up of theMessageHandler
code
#11159 For Type1 fonts, replace missing font dictionary /Widths entries with ones from the font data (issue 11150)
#11158 Avoid floating point inaccuracy in gradient color stops
#11163 Fix the link in the doc website
#11146 Replace ourURL
polyfill with the one fromcore-js
๐ #11165 Enable a couple ofreturn
related ESLint rules
โก๏ธ #11168 Remove unmaintained localizations and update translations and packages
#11171 Fix the inconsistent return types forDict.{get, getAsync}
๐ฆ #11173 Replace the bundledReadableStream
polyfill with theweb-streams-polyfill
npm package (issue 11157)
#11169 Reduce the number of function calls in theDict
class
๐ป #11185 Convert the various...Exception
s to proper classes, to reduce code duplication
๐ท #11182 Forbid sending ofDict
s andStream
s, withpostMessage
, when workers are disabled
๐ #11187 Convert the various image decoder...Error
s to classes extendingBaseException
(PR 11185 follow-up)