PDF.js v1.8.170 Release Notes
Release Date: 2017-04-06 // about 7 years ago-
π Changes:
π #8001 Release of 1.7.225
π #7991 [Firefox addon] Enforce double quotes, using ESLint, to avoid linting errors in mozilla-central (issue 7957)
π #7995 [Firefox addon] Enable theconsistent-return
ESLint rule (issue 7957)
π #8003 MoveEOF
/isEOF
from core/parser.js to core/primitives.js
π #8006 Remove usage ofmozFillRule
#7959 Display a notification on thesidebarToggle
button for PDF documents with outline/attachments
π #8016 Remove the unusedisStream
property on variousStream
s
π #7972 Enable theno-unused-vars
ESLint rule
π #8023 Moves preprocessor stuff to the gulpfile.
π #8025 Adjust thebrace-style
ESLint rule to disallow single lines (and also enableno-iterator
)
π #8027 [Firefox addon] Remove the unusedMOZ_CENTRAL
constant
π¨ #8002 [api-minor] Fix #7798: Refactor scratch canvas usage.
#8030 Interactive forms: rewrite AcroForms example
β #8028 Prevent browser console errors during testing
#8035 [api-minor] Add agetDocument
parameter that allows disabling of theNativeImageDecoder
(e.g. for use with Node.js)
π #8036 [api-minor] Fixes behaviour of DOMCanvasFactory to return {canvas, context}.
π #8038 Moves sed processing into the preprocessing tasks and merging tasks.
#8039 Moving interactive examples to jsfiddle.net
β‘οΈ #8040 Update localization files
#8041 Interactive forms: set thebuttonValue
for radio buttons that do not have afieldValue
π¨ #8043 Allow automatic print rotation via the enablePrintAutoRotate preference
#8046 Replacing custom bundling with webpack 2
π§ #8053 [Chromium addon] Prevent errors that break the addon, caused by theDEFAULT_URL
constant being replaced by adefaultUrl
viewer configuration parameter (PR 8046 follow-up)
π #8054 Write the l10n files to the correct destination forgulp mozcentral
builds (PR 8023 follow-up)
π #8058 Fixes pdf.combined.js for webpack
π #8056 UseChildNode.remove
instead ofChildNode.ParentNode.removeChild
in a couple of places (bug 1334831, issue 8008)
#8060 Font ascent descent calculation fix
#8062 Improve the README by removing outdated information
#8063 Consume the current character when encountering illegal characters inLexer.getObject
, in order to prevent infinite loops during reading of streams (issue 8061)
π #8067 Include thepdfjschildbootstrap.js
file in the output forgulp mozcentral
builds (PR 8023 follow-up)
#8070 New node.js check to protect from webpack.
π¨ #8065 Annotations: refactor setting the normal appearance stream
#8071 Always choose a (3, 1) cmap table for TrueType fonts that have an encoding specified, regardless of the Symbolic font flag (bug 1337429)
π¨ #8064 [api-minor] Refactor fetching of built-in CMaps to utilize a factory on thedisplay
side instead, to allow users of the API to provide a custom CMap loading factory (e.g. for use with Node.js)
β #8080 Enable running thecmap
unit-tests on Travis by utilizing aNodeCMapReaderFactory
#8024 Open PDF attachments in the viewer instead of an unconditional download
#8081 iOS Chrome: Fix broken download button
#8091 Gulp: migratebaseline
target frommake.js
#8105 Always check all Kids nodes, inCatalog.getPageDict
, to avoid getting stuck in an empty node further down in the Pages tree (issue 8088)
π #8102 Move compatibility code to the shared/compatibility.js.
π· #8107 Init PDFWorker via MesssagePort.
#8109 Add gulp task to generate refs.
#8106 Ensure thatDict
s found in Object Streams are assigned anobjId
inXRef.fetch
#8110 Interactive forms: make choice widget options inheritable (issue 8094)
π #8072 Annotations: move operator list addition logic tosrc/core/document.js
#8050 Replaces RequireJS to SystemJS.
π #8115 [CONTRIBUTING.md] Remove any mention of the mailing list, and the weekly meetings
π #8116 Get rid of a coupleeslint-disable
statements inweb/download_manager.js
by instead relying on the preprocessor dead-code removal added in PR 7942
#8087 Allows to pull pdf.js from pdf_viewer using require().
π #8112 Support thenewWindow
flag in white-listedapp.launchURL
JavaScript actions (PR 7794 follow-up)
#8126 Ensure that we don't ignore0
values inPage.getInheritedPageProp
(issue 8125)
#8128 Network: use the current location to prevent errors when using CSP headers
#8120 Publishes processed sources into pdfjs-dist/lib
#8129 Returnundefined
instead ofDict.empty
fromPage.getInheritedPageProp
for non-existent properties to prevent possible future bugs
π #8130 Don't includeweb/compatibility.js
in the output forgulp lib
(PR 8120 follow-up)
π #8138 Get rid ofelement.removeChild(element.firstChild)
usage (bug 1345253)
#8132 Viewer: enable find functionality for small devices
#8144 Widget annotations: do not crash ifParent
is not a dictionary during field name construction (issue 8143)
π #8151 Remove unnecessary.toolbarButton.group
CSS class
#8135 Handle cff fonts with erroneous stackSize (issue 8097)
#8156 Add (and adjust) a couple of findbartitle
attributes, inviewer.html
, that doesn't agree with thel10n/en-US/viewer.properties
file
#8154 Change to conditions thatpdfjsLib
#8168 Normalize theBBox
entry in Tiling Pattern dictionaries (issue 8117)
π #8174 Adjust theyoda
ESLint rule to apply to inequalities as well
#8172 Upstream the changes from bug 1345294 - nsIPrefBranch should have methods to get/set unicode strings
#8170 Try to recover when encountering JPEG markers with too short marker lengths (issue 8169)
0οΈβ£ #8164 Don't read past the EOI marker for JPEG images with non-default restart interval (issue 7828)
#8183 Ensure thatPDFDocument.documentInfo
doesn't fail during document load, when the entire XRef table hasn't been fetched yet (issue 8180)
#8184 Rethrow MissingDataException when needed
#8194 Use a properMessageHandler
forPartialEvaluator.getTextContent
to avoid errors for fonts relying on built-in CMap files (PR 8064 follow-up)
π #8196 Remove unnecessaryxref
parameters from various method signatures inPartialEvaluator
, sincethis.xref
is already available in the relevant scope
#8198 Example for converting PDF to PNG using the Node canvas library
#8195 Enable babel on sources
#8190 Try harder to find the next valid JPEG marker when decoding Scan data (issue 8182, issue 8189)
π #8202 Add a couple of basic ES6 rules to the ESLint config
π #8207 Use a simpleRefSetCache
to significantly improve the performance ofCatalog.getPageDict
for certain long documents (PR 8105 follow-up)
#8205 Improve the error handling when loading of built-in CMap files fail (PR 8064 follow-up)
π¨ #8210 Refactor removing of thezoomLayer
into a helper method, and use that inPDFPageView.reset
to ensure that the entirezoomLayer
is actually removed (issue 8209)
#8232 Lazily load NetUtil.jsm in PdfStreamConverter.jsm.
π #8218 Split pdfjschildbootstrap.js to avoid sync IPC
#8157 [api-minor] Reject theRenderTask
with an actualError
, instead of just astring
, when rendering is cancelled
#8222 ios: Patch cancelAnimationFrame whenever fakeRequestAnimationFrame is used
#8235 Disable theNativeImageDecoder
in thenode/pdf2svg.js
example (issue 7901)
#8239 Stub out Firefox addon Telemetry wrapper
#8243 Donβt skip glyph 0 in cmap.
#8248 Version 1.8