PDF.js v2.0.943 Release Notes
Release Date: 2018-10-27 // over 5 years ago-
๐ Changes since v1.10.100:
๐ #9730 Ignore the rest of the image when encountering an EOI (End of Image) marker while parsing Scan data (issue 9679)
#9740 Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js
๐ #9771 Remove thegulp extension
build target
#9773 Fix multibyte decoding in content_disposition.js
โ #9769 Reduce the amount of errors logged, primarily in Node.js/Travis, when running the unit-tests
๐ฅ๏ธ #9774 Usefs.unlinkSync
instead offs.unlink
when removing files in the font tests
๐ #9741 Build improvements
๐ #9779 Remove dead code in thegh-pages-prepare
task in the Gulpfile
#9777 VariousPageViewport
andMessageHandler
cleanup
#9781 Miscellaneous API clean-up
๐ #9792 Import translations
โ #9660 Support running the tests headlessly.
๐ #9794 Implement drag-and-drop support in the viewer for local files
๐ #9793 RemoveUtil.appendToArray
andUtil.prependToArray
๐ #9689 Fixed critical unhandled promise that prevented error catching using API
#9796 Disable (drag-and-drop) file opening if Presentation Mode is active (PR 9794 follow-up)
๐ #9801 Replace deprecatednew Buffer(string, 'base64')
constructor withBuffer.from(string, 'base64')
๐ #9815 Remove thedisableFullscreen
hack for embedded IE 11 (issue 9585)
#9816 Fix regression causing the pages to be offset horizontally in Presentation Mode (PR 8993 follow-up)
๐ #9595 Disable ftp support in Chrome 59+, add file chooser at file
#9819 Fix regression affecting the horizontalviewerContainer
offset for small window widths (PR 9816 follow-up)
#9809 AllowFontFaceObject.getPathGenerator
to ignore non-embedded fonts during rendering
โก๏ธ #9802 UpdateColorSpace
andPDFImage
to useUint8ClampedArray
s and remove manual clamping/rounding
0๏ธโฃ #9821 Set the correct document title when opening a new file in theGENERIC
default viewer
#9795 ReplaceUtil.extendObj
byObject.assign
#9827 Fix various corrupt PDF files (issue 9252, issue 9418)
๐ #9830 Removed safari compatibility check (issue #9824)
#9835 Clean-up thePDFDocumentProxy.loadingParams
method in the API, and thelocale
viewer option
#9832 Fix a number of regressions/inefficiencies introduced by adding Scroll/Spread modes to the viewer (PR 9208 follow-up)
โ #9839 Add unit-tests forPDFPageProxy.stats
(PR 9245 follow-up)
๐ฆ #9729 Add agulp image_decoders
command to package the image decoders (i.e. jpg.js, jpx.js, jbig2.js) separately, and publish them in pdfjs-dist
#9841 Various (small) cleanup related to setting the initial document position on load
๐ฏ #9849 Replace thecloneObj
helper function, in the viewer, with nativeObject.assign
(PR 9795 follow-up)
#9838 Error, rather than warn, once a number of invalid path operators are encountered inEvaluatorPreprocessor.read
(bug 1443140)
๐ #9852 Proper Error Handling for Build Numbers of Downloaded Sources (Non-Git repositories).
#9853 Fix re-rendering, using the same canvas, when rendering was previously cancelled (PR 8519 follow-up)
โก๏ธ #9859 Update translations and packages
โก๏ธ #9860 Update the localization README to indicate that the translations are imported from the Nightly channel
#9858 Additional Scroll/Spread mode clean-up (PR 9832 follow-up)
๐จ #9861 RefactorPDFFindController
to use the 'pagesinit' event, dispatched on theeventBus
, to resolve the_firstPagePromise
#9866 Prevent the development viewer, started withgulp server
, from breaking completely in Private Browsing mode
#9879 Correct the instructions in the README file forexamples/mobile-viewer
๐ #9880 Remove thejp-JP-mac
locale
#9877 Hide the Scroll/Spread mode buttons if the viewer is aPDFSinglePageViewer
instance (PR 9858 follow-up)
#9868 Stop exposing theURL
polyfill in the global scope
#9837 ReplaceNotImplementedException
withunreachable
#9881 Replace the remaining occurences ofinstanceof Array
withArray.isArray()
๐ #9887 Convert more code in the/src
folder to use ES6 classes, such thatUtil.inherit
can be removed
๐ #9886 Prevent errors insanitizeTTProgram
, during parsing of CALL functions, when encountering invalid functions stack deltas (bug 1473809)
๐ #9898 ChangewaitOnEventOrTimeout
, in web/ui_utils.js, to return a regularPromise
and remove thecreatePromiseCapability
import
๐ #9900 Prevent Metadata/XML parsing from breakingPDFDocumentProxy.getMetadata
when no XML root document is found (issue 8884)
#9904 Modified Examples to work without systemjs
๐จ #9913 Provide custom messages for theno-restricted-globals
ESLint rule, and refactor the.eslintrc
files (PR 9868 follow-up)
#9917 Add aBasePreferences.getAll
method and use it to fetch all Preferences at once inPDFViewerApplication._readPreferences
; ensure that theexternalLinkTarget
option is correctly set when the viewer is embedded
๐ป #9924 fix(browser): zlib is not available in browser
#9933 README.md: suggest usage of https instead of git protocol
#9935 [Regression] ConvertCatalog.builtInCMapCache
into aMap
, instead of an Object, to ensure that it's correctly reset (PR 8064 follow-up)
#9936 Validate the Preferences when fetching them from storage
#9925 Attempt to estimate the minimum requiredbuffer
length when initializingStreamsSequenceStream
instances
๐จ #9931 RefactorgetPage
(in the worker), and attempt to use theLinearization
dictionary to lookup the first Page
๐ #9920 [api-minor] Add anIsLinearized
property to thePDFDocument.documentInfo
getter, to allow accessing the linearization status through the API (viaPDFDocumentProxy.getMetadata
)
#9897 Prefer the Width/Height of the image data, rather than the image dictionary, for JPEG 2000 images (issue 9650)
#9938 Ensure that Type0, i.e. composite, OpenType fonts withCFF
tables are not treated as CFF fonts if their glyph mapping is non-default (issue 9915)
๐ #9946 Removed Extraneous Matrix Check in CalRGB Conversion
โ #9948 Add (basic) unit-tests for the non-globalURL
constructor (PR 9868 follow-up)
โ #9954 Stop warning for non-Name /Filter entries in thePDFImage
constructor (PR 9897 follow-up)
#9874 [api-minor] Include export value for checkboxes
โ #9956 Allow loaded progress of 0 in unit tests.
โ #9960 Fail when MD5 of test files fails on bots.
โ #9959 Utility script to add a reference test.
๐ #9961 Parse the font file to determine the correct type/subtype, rather than relying on the (often incorrect) data in the font dictionary
#9958 Always fallback to system font on font failure.
โก๏ธ #9965 Update translations and packages
#9964 Attempt to throwMissingPDFException
when applicable innode_stream.js
(issue 9791)
#9968 Tweak the MMType1 font detection ingetFontFileType
to improve font telemetry (PR 9961 follow-up)
๐จ #9822 [api-minor] Refactor the annotation code to be asynchronous
#9975 Re-factordestinations
/getDestination
to reduce unnecessary duplication, and reject non-string inputs
#9980 Ensure thatUint8ClampedArray
is used for image data transfered bygetTransfers
(PR 9802 follow-up)
๐ #9988 Remove the unusedPDFDocument.mainXRefEntriesOffset
method
โก๏ธ #9989 Update translations and packages
๐ #9987 [api-minor] Remove the obsoletecreateBlob
helper function
๐ #9991 Remove the deprecated ways, inBaseViewer
, of setting the Scroll/Spread modes (PR 9858 follow-up)
๐ #9977 Add support forasync
/await
using Babel
๐ #10000 Remove the unuseddefaultColor
property onColorSpace
instances
โก๏ธ #10008 Update translations/packages and fix duplicated function name in the Esprima fixtures
#9990 Convert theCatalog
class, insrc/core/obj.js
, to ES6 syntax
#10007 Convert the code insrc/core/colorspace.js
to use ES6 classes
#10015 Adding chunkname to async loaded code
๐ #10020 Ensure that the builtPdfJsDefaultPreferences.jsm
file won't be affected/touched during tree-wide ESLint rule changes inmozilla-central
(PR 9571 follow-up)
#10022 Implement text rendering modes in SVG backend
๐ #10010 Attempt to find truncated endstream commands, in the fallback code-path, inParser.makeStream
(issue 10004)
๐ #10019 Add general support for re-dispatching events, onEventBus
instances, to the DOM
#9986 Attempt to combine separate beginText/endText sequences ingetTextContent
(issue 9984)
#10032 Replace broken link forpr8808.pdf.link
#10031 Add a new parameter toJpegImage.getData
to indicate the source of the image data (issue 9513)
#10033 [api-minor] Implement a permissions API
โช #10041 Revert "Attempt to combine separate beginText/endText sequences ingetTextContent
(issue 9984)"
#10049 Fix font-string variable name typo
#9340 Map all glyphs to the private use area and duplicate the first glyph.
๐จ #9995 Refactor code in theweb/
folder to useasync
/await
๐ #10053 Simplify the "spaced-comment" ESLint rule
๐ #10034 RemovegetSinglePixelWidth
workaround
โก๏ธ #10054 Update translations/packages and use HTTPS for links inREADME.md
#10052 Display the index of the currently active search result in the matches counter of the findbar (issue 6993, bug 1062025)
#10055 Translate the new find match count strings to Dutch
๐ #10028 Add initial support for "Whole words" searching in the viewer
โก๏ธ #10056 [Regression] Ensure thatPDFFindBar.updateResultsCount
doesn't throw when the viewer is closed, by providing proper default values
#10060 Ensure thatPDFFindController._requestMatchesCount
won't return broken data when searching starts (PR 10052 follow-up)
โ #10061 Implement unit tests for theisSameOrigin
andcreateValidAbsoluteUrl
utility functions and use theconst
keyword for constants insrc/shared/util.js
#10063 Slightly improve theisSourcePDF
parameter handling inJpegImage
(PR 10031 follow-up)
๐ #10070 Attempt to support plural forms in the matches counter of the findbar (issue 10067)
๐จ #10066 Refactor the find controller
๐ป #10071 Enable forwarding, inFirefoxCom
, of the matchesCount to the browser findbar (bug 1062025)
๐ #10078 Improve plural support for the matches counter
#10090 Ensure that all event properties are included, even if no (internal) listeners are registered, when re-dispatching events to the DOM (PR 10019 follow-up)
โก๏ธ #10095 Update packages and translations
#10111 ReplaceString.prototype.substr()
occurrences withString.prototype.substring()
โก๏ธ #10114 Update{PDFLinkService, PDFDocumentProperties}.setDocument
to make the "url" parameter optional
#10100 Clear all find highlights when the findbar is closed (issue 7468)
โก๏ธ #10116 Update packages and translations
โ #10099 [api-major] Rework the find controller for unit testing
๐ #9982 Use the Font Loading API inMOZCENTRAL
builds, andGENERIC
builds for Firefox version 63 and above (issue 9945, bug 1088663)
#10119 Attempt to simplify thefileattachmentannotation
event dispatching
#10123 Attempt to simplify thePDFFindBar
andPDFSidebar
constructors
โช #10126 [Regression] Restore the ability to start searching before a document has loaded, and ignore searches for previously opened documents (PR 10099 follow-up)
#10128 MakePDFFindController
less confusing to use, by allowing searching to start whensetDocument
is called
๐ #10117 Add support of Ink annotation
๐ #10136 Remove the unusedmainContainer
parameter from theToolbar
constructor
#10138 Ensure thatToolbar.setPageScale
always sets thepageScaleValue
property to a valid value
๐ท #10139 Ensure that thePDFDocumentLoadingTask
is rejected when "setting up fake worker" failed (issue 10135)
#10133 Set returnValues.suggestedLength to Content-Length if integer
๐ท #10140 Combine thepdfjsFilePath
and fallbackworkerSrc
handling insrc/display/api.js
๐ท #10143 Ensure thatgetMainThreadWorkerMessageHandler
won't accidentally breakgetDocument
(PR 10139 follow-up)
#10150 Add missingpagesCount
getter toIPDFLinkService
andSimpleLinkService
๐ #10152 Add support forclassList.toggle
with the, optional, "force" parameter
๐ #10155 Add Build Status Button
๐ #10166 Bump version numbers for stable and beta releases
#10167 ExportCMapCompressionType
andPermissionFlag
on thepdfjsLib
object (issue 10148, PR 10033 follow-up)
#10161 Ensure thatonProgress
is always called when the entire PDF file has been loaded, regardless of how it was fetched (issue 10160)
#10168 ConvertPDFDataRangeTransport
to an ES6 class
โก๏ธ #10176 Update translations and packages
โ #10179 Change splice to pop in annotation tests