PDF.js v1.7.225 Release Notes
Release Date: 2017-01-26 // about 7 years ago-
π Changes:
π #7692 Release of 1.6.210
π #7670 Only skip parsing a stream inParser_makeFilter
when we know for sure that it is empty (PR 6372 follow-up)
#7671 Interactive forms: render choice widget annotations
π¨ #7677 Bug 1302069 - Printing canvases at PDF document size.
#7694 Disables Font Loading API for Firefox.
π¨ #7697 Refactoring of printing code and mozPrintCallback polyfill
#7514 Ensure that we cancel any pending rendering operations when the viewer is closed (issue 7274)
#7714 Fix getTextContent evaluation to only apply TJ horizontal offsets using numeric items/args
β‘οΈ #7722 Update to latest grab-to-pan version
π #7726 Remove a remaining old-style preprocessor fromsrc/core/fonts.js
(PR 7322 follow-up)
#7668 Prevent an infinite loop inXRef_fetchUncompressed
for encrypted PDF files with indirect objects in the /Encrypt dictionary (issue 7665)
π #7727 LetParser_makeFilter
pass in theDecodeParms
data to various imageStream
s, instead of re-fetching it in various[...]Stream.prototype.ensureBuffer
methods
#7728 Gulp: port theall
,extension
andjsdoc
targets
π #7730 Fix a couple of JSDoc@typedef
s to use@property
(instead of@param
) to fix some missing documentation when runninggulp jsdoc
π¨ #7715 SVG: optimize and refactor group creation code
π #7732 Removes SVG this.cgrp usages.
#7717 Explain double-click behaviour on tool tip
π #7689 [api-minor] Add support for relative URLs, in both annotations and the outline, by adding adocBaseUrl
parameter toPDFJS.getDocument
(bug 766086)
#7749 Avoid accidentally rejecting a named destination that looks like a decimal number or a boolean (PR 7341 follow-up)
#7756 Travis CI: use most recent version of NPM
#7750 Add more validation toPDFLinkService_navigateTo
π #7757 Remove/deprecate specifying a pageNumber directly after the hash symbol (#), to improve compatibility since other PDF viewers don't support this form (issue 7746)
π¨ #7766 Printing refactor split from 7721
β‘οΈ #7771 Localization updates
π #7773 [l10n] Add Swedish translations for a couple of new/changed localization IDs
π #7774 Improve lint coverage and correct code style violations
π #7745 [api-minor] Add basic support forLaunch
actions (issue 1778, issue 3897, issue 6616)
#7775 Widget annotation: implement field name according to the specification
#7778 Additional check to ensure pdfViewer object is defined before handleMouseWheel event accesses its property isInPresentationMode
#7782 UsestringToPDFString
to sanitizing bad "Prefix" entries in Page Label dictionaries, and add more validation
π #7698 Ignore reserved commands when parsing operands inCFFParser_parseDict
, instead of just rejecting the entire font (bug 1308536)
π #7786 Add HTTPS support for Demo
π± #7781 Viewer: improve responsiveness and clean up CSS
#7792 Make thecustomScaleOption
disabled to prevent it being keyboard accessible (bug 1315608)
π #7794 [api-minor] Add support for a couple of white-listedJavaScript
actions that contains valid URLs (issue 3897, bug 843699)
#7800 Replace the Safari detection incheckRangeRequests
in compatibility.js with a regular expression
#7801 Enable removing of all comments (except for Copyright notices) when preprocessing code, and reduce the indentation level
#7803 Fix #7701: additional check for http/https protocols to fix unsafe heβ¦
#7819 For commands with with too few arguments, clear outargs
if it's an Array instead of replacing it withnull
inEvaluatorPreprocessor_read
(issue 7804)
π¨ #7789 Refactor toolbar.
#7738 Adds SVG rendering capabilities to the main viewer.
β #7826 Prevent "unreachable code after return statement" warnings fromPDFPageView_paintOnSvg
in the addons
π€‘ #7830 Return a mock object inpaintOnSvg
when SVG rendering is not supported, to preventTypeError
s in the addons
#7793 Rename theViewHistory
localStorage (and sessionStorage) key fromdatabase
topdfjs.history
, and migrate existing data on read (issue 7760)
#7839 Correctly detect more cases of non-embedded Arial Black fonts (issue 7835)
#7832 Expose the optional UserUnit entry as a page property
π¨ #7841 Compatibility: disable range requests for iOS and refactor user agent detection
#7845 Make: include minified library files for the distribution target
#7846 Bidi: import Unicode types from the specification
π #7849 Viewer: remove unused CSS rule
π #7853 Fix the JSDoc comment forCatalog.parseDestDictionary
#7700 Improve rendering of non-embedded NuptialScript font
#7628 Fallback to theStandardEncoding
for Nonsymbolic fonts without/Encoding
entry (issue 7580)
#7858 Make the keyboard shortcutsCtrl + Up/Down
behave asHome/End
(issue 7852)
#7856 Ensure thatPartialEvaluator_extractWidths
is able to handle indirect objects in all kinds of "width" data (issue 7855)
#7862 Don't fail if mozL10n is not present.
β #7857 add basic unit-tests for murmurhash3.js
β #7868 Adjust one of the Page Label unit-tests to use a PDF file where the "St" entry is both present and non-default (i.e. greater than one)
π¨ #7863 Colorspace: refactoring to prevent unnecessary creation of intermediate arrays
π #7881 Remove a misplacedfalse
from a condition infixMetadata
, inmetadata.js
, since it currently short circuits the entire condition
π #7884 Ensure that we resolve indirect objects inFilter
andDecodeParms
arrays inparser.js
#7873 Document: handle indirect objects inMediaBox
andCropBox
entries
π #7705 Move symbolic font glyphs to private use area if they don't have unicode mappings (issue 2594, bug 789074, bug 865644)
π #7890 Fix a number of code style issues found by various ESLint rules, to make it easier to switch from JSHint to ESLint
π #7886 Move thePreferences
initialization/fetching code to the top ofPDFViewerApplication.initialize
, to enable using them when initializing e.g. the viewer components
π #7897 Switch to using ESLint, instead of JSHint, for linting
#7900 Ensure that we handle indirect objects in all types ofOpt
entries inChoiceWidget
annotation dictionaries
#7898 Interactive forms: render button widget annotations (checkboxes and radio buttons)
#7879 Make use of textAdvanceScale consistent during combineTextItems. Fix for #7878.
#7829 LetfinishPaintTask
in pdf_page_view.js return a promise instead, to avoid having to throw in thepaintTask.promise
rejection handler, and don't reject thePDFPageView_draw
promise when rendering iscancelled
#7920 Improve the handling ofEncoding
dictionary, withDifferences
array, inPartialEvaluator_preEvaluateFont
#7926 [api-minor] Ensure that thegetDocument
Promise is rejected if theloadingTask
is destroyed, or anError
is thrown, inside of theonPassword
callback (issue 7806)
β #7934 Unit test files as modules
π #7935 Enable theno-else-return
ESLint rule
β #7939 Enables some unit tests on travis.
#7941 Replace direct lookup ofuniquePrefix
/idCounters
, inPage
instances, with anidFactory
containing ancreateObjId
method instead
β #7942 Fixes preprocessor testing and adds deadcode removal.
π #7943 Various fixes for theexternal/builder/test*.js
files
π #7944 Removes Promise usage from preferences.js
π #7869 Fixes issue #6071 - TIFF with 1 bit-depth
π #7945 Moves locale and cmaps tasks to gulpfile.
#7948 Fix inverted calculation of RTL text percentage in bidi
#7951 Renameannotation_layer_spec.js
toannotation_spec.js
to better describe what is actually tested, and simplify theFileAttachmentAnnotation
unit-test to avoid having to use the entire API in the test
#7904 Further adjust the heuristics used to detect OpenType font files with CFF data, to ensure that all Type0 fonts are handled the same way regardless of font Subtype (issue 7901)
π #7913 [Firefox addon] Change the minimum supported version to Firefox 45, i.e. the current ESR version, and remove no longer necessary fallback code
π #7954 [Bug 1329182] remove trailing newURI null parameters
π #7956 [Bug 1330147] removeObserver calls should not supply a third parameter
π #7960 Adjust thespace-unary-ops
ESLint rule to comply with mozilla-central lint rules
π #7965 [Bug 1331081] omit addEventListener/removeEventListener's third parameter when it's false
π #7974 Enable theno-lone-blocks
ESLint rule
π #7980 Fix #7978: Fixes ESLint yoda rule for the URL polyfill.
π #7979 Enable theno-unsafe-finally
/no-octal
/no-useless-call
ESLint rules
π #7973 Enable thespaced-comment
ESLint rule
π #7985 Fixes IE9 document.readyState and input.type=number issues.
#7977 Ensure that we use the correctpaintedViewport
inPDFPageView.cssTransform
, to avoid visual glitches on quick rotations (PR 7738 follow-up)
π #7982 [Firefox addon] Convert the code to be ES6 friendly, in order to better agree with mozilla-central coding conventions (issue 7957)
π #7988 Enable theno-empty-pattern
/no-floating-decimal
/no-self-compare
/no-delete-var
/no-new-object
ESLint rules
π #7971 remove viewer page div id
π #7990 [Firefox addon] Stop bundlingsrc/core/network.js
into theFIREFOX
/MOZCENTRAL
builds (PR 7322 follow-up)
#7987 [api-minor] Adds noopener and nofollow to rel attribute of hyperlinks.
#8000 Version 1.7