Changelog History
Page 2
-
v1.8.188 Changes
April 13, 2017π Changes (from 1.8.170):
π #8249 Release 1.8.170
β #8244 Actually skip pages included in theskipPages
array when running tests, rather than creating empty 1x1 canvases (issue 8241)
π #8257 Enable theprefer-promise-reject-errors
ESLint rule
#8266 Normalize blend mode names.
π #8273 Correctly detect ifrequestAnimationFrame
is supported incompatibility.js
(issue 8272)
#8275 Rename PdfJsTelemetry-addon.jsm to PdfJsTelemetry-stub.jsm
π #8228 Implement support for line annotations
π· #8262 Fix worker resolution on using minified version -
v1.8.170 Changes
April 06, 2017π 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 -
v1.7.225 Changes
January 26, 2017π 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