PDF.js v2.5.207 Release Notes
Release Date: 2020-06-01 // almost 5 years ago-
๐ This release features performance improvements thanks to improved image caching and JPEG decoding.
๐ Changes since v2.4.456:
๐ #11717 Bump versions in
pdfjs.config
and update the getting started page of the website for the new release
๐ #11719 Remove the unusedwideChars
property onFont
instances
โก๏ธ #11720 Update theeslint-plugin-no-unsanitized
package to the latest version
โก๏ธ #11721 Don't let Travis runnpm update
during setup
๐ #11728 Remove unnecessary checks from thePDFDocumentProperties
constructor
๐ #11724 Only build the necessaryweb/
files during thegulp default_preferences
task
๐ #11723 Remove variable shadowing from the JavaScript files in thesrc/display/
folder
#11725 Re-factorPDFViewerApplication.load
such that{PDFViewer, PDFThumbnailViewer}.setDocument
happens slightly earlier
๐ #11734 Remove old API methods which were previously converted to throwing (PR 11219 follow-up)
#11736 Addpassive: false
to thewheel
event listener used inPDFPresentationMode
(issue 11735, PR 10765 follow-up)
๐ #11742 Remove variable shadowing from the JavaScript files in thetest/unit/
folder
๐ #11738 Remove variable shadowing from the JavaScript files in thesrc/core/
folder
#11707 Always prefer the PDF.js JPEG decoder for very large images, in order to reduce peak memory usage (issue 11694)
#11744 The first glyph in CFF CIDFonts must be named 0 instead of ".notdef"
๐จ #11646 Ensure that automatic printing still works when the viewer and/or its pages are hidden (bug 1618621, bug 1618955)
#11747 Addpassive: false
when removing wheel listeners
๐ #11745 Enable the ESLintno-shadow
rule
๐ #11755 Remove the unusedsizes
andencoding
properties onFont
instances
#11767 Replace the RTL images with CSS transforms of the standard images (issue 11766)
๐ #11655 [api-minor] Remove thegetGlobalEventBus
viewer functionality, and theeventBusDispatchToDOM
option/preference (PR 11631 follow-up)
๐ #11771 Fail early, in modernGENERIC
builds, if certain required browser functionality is missing (issue 11762)
โก๏ธ #11772 Update packages and translations
#11769 Ensure thatFont.charToGlyph
won't fail becauseString.fromCodePoint
is given an invalid code point (issue 11768)
โก๏ธ #11781 Update the "gulp jsdoc" task to account for API changes in themkdirp
package (PR 11772 follow-up)
๐ #11780 Move the initialization of "page labels"/"metadata"/"auto print" out ofPDFViewerApplication.load
#11773 [api-minor] ChangeFont.exportData
to use an explicit white-list of exportable properties, and stop exporting internal/unused properties
0๏ธโฃ #11777 [api-minor] ChangeFont.exportData
to, by default, stop exporting properties which are completely unused on the main-thread and/or in the API (PR 11773 follow-up)
#11746 Create the glyph mapping correctly for composite Type1, i.e. CIDFontType0, fonts (issue 11740)
#11727 Add a heuristic to scale even single-char text, when the horizontal/vertical scaling differs significantly (issue 11713)
0๏ธโฃ #11789 Add a newpdfjs.enablePermissions
preference, off by default, to allow the PDF documents to disable copying in the viewer (bug 792816)
#11797 Don't bundle the fallbackgrab
/grabbing
cursor images when runninggulp mozcentral
๐ #11799 Fail early, in modernGENERIC
builds, if certain required browser functionality is missing (PR 11771 follow-up)
๐ #11800 Remove any mention of Gitpod from the README (issue 11732)
โก๏ธ #11809 Update Prettier to version 2.0
#11806 [api-minor] Fix the return value ofPDFDocumentProxy.getViewerPreferences
when no viewer preferences are present (PR 10738 follow-up)
#11810 A couple of smallString.fromCodePoint
improvements (PR 11698 and 11769 follow-up)
#11805 Always skip over any additional, unexpected, RSTx (restart) markers in corrupt JPEG images (issue 11794)
๐ป #11813 Suppress browser autofill on page number
๐ #11821 docs: Fix simple typo, occurences -> occurrences
๐ #11819 [src/core/jpg.js] Remove redundant marker validation at the end of thedecodeScan
function (PR 11805 follow-up)
๐ #11818 Enable thedot-notation
ESLint rule
๐ #11814 Support the vertical writing mode with SVG backend.
โก๏ธ #11822 Update packages and translations
๐ #11826 Change the "download" keyboard shortcut (Ctrl+S) handling, in GENERIC/CHROME builds, to utilize theEventBus
(issue 11657); add a new "openfile" keyboard shortcut (Ctrl+O), in GENERIC builds
#11823 [src/core/fonts.js] Improve thevalidateOS2Table
function and other code
๐ #11825 Avoid reading the "disablePreferences"/"locale" options, when initializing the viewer, in extension builds
๐ #11831 Use Node LTS releases to fix Travis CI builds (issue 10790)
#11835 [api-minor] ChangePageViewport
to throw when therotation
is not a multiple of 90 degrees
#11837 Always attempt to dispatch the "webviewerloaded" event at the embeddingdocument
(PR 10318 follow-up, issue 11829)
๐ #11844 [api-minor] Immediately release thefont.data
property once the font been attached to the DOM (PR 11777 follow-up)
๐ #11845 Use the nativeURL.createObjectURL
method more in theweb/
folder
๐ #11847 Move themaybeValidDimensions
check, used with JPEG images, to occur earlier (PR 11523 follow-up)
โ #11807 Introduce Puppeteer for handling browsers during tests
#11853 Include the name for interactive form elements
๐ #11834 Preserve error types during translation
๐ #11864 Remove thecreate-react-app
example (issue 11729)
โก๏ธ #11868 Update packages and translations
#11869 Various smaller clean-up ingulpfile.js
๐ #11863 Add more categories of unsupported features.
๐ #11872 Gracefully handle annotation parsing errors inPage.getOperatorList
(issue 11871)
๐ #11879 Enable the ESLintgrouped-accessor-pairs
rule
๐ #11873 Use the ESLintno-restricted-syntax
rule to ensure thatassert
is always called with two arguments
#11880 Attempt to respect the "zoom" hash parameter, even when the "nameddest" parameter is present (issue 11875)
๐ #11889 Handle errors individually for each annotation in the_parsedAnnotations
getter
โก๏ธ #11890 Update ESLint to version 7
#11892 Add aminified-es5
gulp task (issue 11858)
#11905 Reduce the usage ofrequire
statements in code-paths not protected by pre-processor and/or run-time checks
โก๏ธ #11910 Update packages and translations
๐ #11911 Remove the SystemJS dependency from theweb/preferences.js
file
๐ป #11917 [Firefox] Allow PDF attachments to, once again, be opened directly in the browser (bug 1632644)
๐ท #11914 Convert thesrc/pdf.js
andsrc/pdf.worker.js
files to use standardimport
/export
statements
#11919 Reduce usage of SystemJS, in the development viewer, even further
#11912 Attempt to cache repeated images at the document, rather than the page, level (issue 11878)
๐ท #11924 Avoid hanging the worker-thread for CMap data with ridiculously large ranges (issue 11922)
๐ #11926 AllowGlobalImageCache.clear
to, optionally, only remove the actual data (PR 11912 follow-up)
#11601 [api-minor] Decode all JPEG images with the built-in PDF.js decoder insrc/core/jpg.js
#11927 Implement fill opacity for shading patterns in the SVG back-end
โก๏ธ #11939 Update Acorn to version 7
#11940 Add comments to theexport
list in thesrc/pdf.js
file (PR 11914 follow-up)
#11930 Improve the local image caching inPartialEvaluator.getOperatorList
๐ #11943 Remove unused code from theexternal/builder/builder.js
file
โก๏ธ #11945 Update packages and translations
#11947 Ensure that that we don't attempt to cache inline images in theGlobalImageCache
(PR 11912 follow-up)