Skip to content

Releases: mozilla/pdf.js

v1.9.426

14 Aug 23:40
Compare
Choose a tag to compare

Changes:

#8281 v1.8.188
#8131 ES6 modules: remove UMD header validation
#8240 [api-minor] Always allow e.g. rendering to continue even if there are errors, and add a stopAtErrors parameter to getDocument to opt-out of this behaviour (issue 6342, issue 3795, bug 1130815)
#8203 Convert the files in the /web folder to ES6 modules
#8286 Changing package.json version to 1.0.0
#8283 Moves Uint32ArrayView and hasCanvasTypedArrays into compatibility.js.
#8285 Change amd to cjs path in ES6 modules
#8287 Allow to convert (some of) ES6 code to ES5.
#8289 Firefox extension: remove unused preference cleanup from bootstrap.js
#8288 Moves 'web' target to the gulpfile.
#8291 Ensure that PDFThumbnailView.draw is able to handle RenderingCancelledException correctly (PR 8157 follow-up)
#8293 Convert the password prompt to ES6 syntax
#8295 Use createPromiseCapability in /web files and avoid unnecessary PDFPageView.setPdfPage calls
#8294 Convert the files in the /src/display folder to ES6 modules
#8296 Convert the document properties to ES6 syntax
#8297 Convert the find bar to ES6 syntax
#8299 Import getGlobalEventBus correctly from web/dom_events.js in various /web files, to un-break e.g. the viewer components (PR 8203 follow-up)
#8300 Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up)
#8311 [Firefox addon] Upstream changes from: Bug 1356569 - Remove optional trailing parameters (issue 8310)
#8312 Moves dist and minifiedpost tragets from make.js.
#8315 Remove the signchromium target from make.js
#8313 [Firefox addon] Upstream changes from: Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales
#8321 Change getPDFFileNameFromURL to ignore data: URLs for performance reasons (issue 8263)
#8322 [Firefox addon] Remove the window.FirefoxCom hack from web/viewer.js, since it was made redunant by the setExternalLocalizerServices refactoring (PR 7202 follow-up)
#8323 Change the importl10n script to use the Beta channel, since Aurora is being removed
#8302 Convert the attachments/outline view to ES6 syntax
#8306 Convert the sidebar to ES6 syntax
#8303 Convert the Preferences to an ES6 class
#8328 Makefile: remove unused mozcentralcheck target
#8339 Convert the ViewHistory to an ES6 class, and re-factor it to make it properly asynchronous
#8331 Enable running the ui_utils unit-tests on Travis
#8324 Convert the annotation layer builder, presentation mode and rendering queue to ES6 syntax
#8332 Enable the object-shorthand ESLint rule in src/shared and src/display
#8345 Bots: disable the default browser test and enable E10s
#8346 Restore the URL.createObjectURL check to the createObjectURL utility function (issue 8344)
#8348 Add the commit hash to the README.mozilla file (issue 8347)
#8309 Allow use versions for pdf.js script (i.e. - pdf.js?2412313)
#8352 Removes builder.build().
#8335 Subtract the X/Y offsets when decoding refinement regions of JBIG2 images (issue 7145, 7308, 7401, 7850, 8270)
#8351 Enable the object-shorthand ESLint rule in web
#8342 Enable the object-shorthand ESLint rule in src/core
#8298 Convert the files in the /test/unit folder to ES6 modules
#8354 [Firefox addon] Replace a bind(this) statement with an arrow function in PdfStreamConverter.jsm (issue 8343)
#8353 Enable the object-shorthand ESLint rule
#8355 Replace unnecessary bind(this) and var self = this statements with arrow functions in src/core/evaluator.js
#8349 Migrate make.js to gulpfile.js
#8357 Replace unnecessary bind(this) and var self = this statements with arrow functions in remaining src/core/ files
#8361 Export LoopbackPort
#8363 Adds initializeFromPort to the WorkerMessageHandler.
#8364 Adds babel caching for system.js.
#8359 Ignore line-breaks between operator and digit in Lexer.getNumber
#8369 Add no-default-browser-check to chrome runner.
#8370 Replace unnecessary bind(this) and var self = this statements with arrow functions in remaining src/ files
#8358 Change the signatures of the PartialEvaluator "constructor" and its getOperatorList/getTextContent methods to take parameter objects
#8377 Replace unnecessary bind(this) statements with arrow functions in web/ files
#8378 Convert the files in the /src/shared folder to ES6 modules
#8340 Fix char spacing bug in SVG mode
#8368 Enables source maps for webpack generated files.
#8385 Fix typo in LoopbackPort export
#8381 Re-factor PDFDocumentProperties such that it's properly reset when a new PDF file is opened (issue 8371)
#8387 amends Babel cache (#8364) implementation to also work on Safari
#8390 Upstream changes from: Bug 1319111 - Expose result principal URL ("final channel URL") on LoadInfo, convert current consumers of LOAD_REPLACE
#8393 Replace unnecessary var self = this statements with arrow functions in web/app.js
#8391 Convert the hand tool, interfaces and secondary toolbar to ES6 syntax
#8350 [api-minor] Fix svg image render
#8397 Simplify extractText, and replace unnecessary var self = this statements with arrow functions, in web/pdf_find_controller.js
#8399 Wait until PDFDocumentLoadingTask.destroy is resolved before calling done in the API unit-tests
#8400 Wait for previous pdfDocument(s) to be destroyed before running the next reference test
#8398 Convert the DOMCMapReaderFactory and DOMCanvasFactory to ES6 classes
#8258 Enable running a subset of the API unit-tests on Travis
#8406 Gracefully ignore transaction failure in plugin-babel-cached
#8411 Replace unnecessary var self = this statements with arrow functions in web/pdf_page_view.js and web/pdf_thumbnail_view.js
#8417 Use eslint-plugin-mozilla and the webextensions environment to avoid defining globals in each file.
#8413 [api-minor] Adds additional parameter so background color of canvas can be set
#8388 Cache JPEG images, just as we do for other image formats, in evaluator.js (issue 8380)
#8420 Revert "Upstream changes from: Bug 1319111 - Expose result principal URL ("final channel URL") on LoadInfo, convert current consumers of LOAD_REPLACE"
#8421 Change the importl10n script to use the Nightly channel
#8366 Removes shelljs
#8431 Replace a couple of leftover make.js references with gulpfile.js in docs/comments
#7635 Unify handling of various cursor tools, e.g. the current Hand Tool and a possible future Zoom Tool, in a new PDFCursorTools module
#8432 Remove the special handling for nameddests that look like standard pageNumbers
#8433 Remove the reference to compatibility.js from the README, since it's included by default in GENERIC builds
#8436 Don't map glyphs to the HANGUL FILLER (0x3164) Unicode location (issue 8424)
#8437 Resets canvas 2d context to the default state.
#8442 Add different code-paths to {CMap, ToUnicodeMap}.charCodeOf depending on length, since Array.prototype.indexOf can be extremely inefficient for very large arrays (issue 8372)
#8416 Refactor and ES6-ify PDFLinkService.navigateTo
#8452 Update webpack.js to support browsers that do not have the Web Workers API
#8450 Convert the overlay manager to ES6 syntax
#8284 Convert the files in the /src/core folder to ES6 modules
#8455 Convert the page view to ES6 syntax
#8458 Refactor the getTempCanvas function in pdf_thumbnail_view.js to a factory, in preparation for ES6 conversion of the thumbnail related code
#8462 Removes last UMDs from the modules.
#8463 Allow specifying the PDFJS_NEXT build flag via an environment variable when running the various gulp commands
#8396 Adds streams-lib polyfill and exports ReadableStream from shared/util.
#8394 Wraps mozL10n to async calls; splits firefox and generic l10n libs.
#8466 Add a stub createL10n to DefaultExternalServices in app.js
#8470 Fix inconsistent spacing and trailing commas in objects in extensions/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on
#8469 Fix inconsistent spacing and trailing commas in objects in web/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on
#8477 Fix inconsistent spacing and trailing commas in objects in test/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on
#8475 Fix inconsistent spacing and trailing commas in objects in remaining src/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on
#8474 Fix inconsistent spacing and trailing commas in objects in src/core/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on
#8478 Fix the remaining cases of inconsistent spacing and trailing commas in objects, and enable the comma-dangle and object-curly-spacing ESLint rules
#8482 Convert the thumbnail view/viewer to ES6 syntax
#8483 Convert the find controller to ES6 syntax
#8467 Bug 1353029 - Pass PdfJs.enabled into child on change.
#8499 Prevent console errors when clicking to change page while in Presentation Mode (issue 8498)
#8430 Adds sendWithStream method in MessageHandler.
#8441 Ensure that TilingPatterns have valid (non-zero) /BBox arrays (issue 8330)
#8508 Fixes duplicate creation of PDFWorker for the same port.
#8510 Prevent the Zoom dropdown from intermittently displaying an incorrect custom scale in Firefox (PR 8394 follow-up)
#8517 Additional check in globalScope detections
#8401 Adds gulp dist-install command; using pdfjs-dist package in examples.
#8519 Preventing from using the same canvas for multiple render()
#8522 Fixes WeakMap polyfill (and improves PDFWorker port check).
#8531 Remove PDFPageView.updatePosition since it's not actually necessary
#8515 Adds special case for origin of blob to the compatibility URL.
#8525 Allow for unbinding of events in we...

Read more

v1.8.188

13 Apr 15:45
Compare
Choose a tag to compare

Changes (from 1.8.170):

#8249 Release 1.8.170
#8244 Actually skip pages included in the skipPages array when running tests, rather than creating empty 1x1 canvases (issue 8241)
#8257 Enable the prefer-promise-reject-errors ESLint rule
#8266 Normalize blend mode names.
#8273 Correctly detect if requestAnimationFrame is supported in compatibility.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

06 Apr 18:43
Compare
Choose a tag to compare

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 the consistent-return ESLint rule (issue 7957)
#8003 Move EOF/isEOF from core/parser.js to core/primitives.js
#8006 Remove usage of mozFillRule
#7959 Display a notification on the sidebarToggle button for PDF documents with outline/attachments
#8016 Remove the unused isStream property on various Streams
#7972 Enable the no-unused-vars ESLint rule
#8023 Moves preprocessor stuff to the gulpfile.
#8025 Adjust the brace-style ESLint rule to disallow single lines (and also enable no-iterator)
#8027 [Firefox addon] Remove the unused MOZ_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 a getDocument parameter that allows disabling of the NativeImageDecoder (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 the buttonValue for radio buttons that do not have a fieldValue
#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 the DEFAULT_URL constant being replaced by a defaultUrl viewer configuration parameter (PR 8046 follow-up)
#8054 Write the l10n files to the correct destination for gulp mozcentral builds (PR 8023 follow-up)
#8058 Fixes pdf.combined.js for webpack
#8056 Use ChildNode.remove instead of ChildNode.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 in Lexer.getObject, in order to prevent infinite loops during reading of streams (issue 8061)
#8067 Include the pdfjschildbootstrap.js file in the output for gulp 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 the display 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 the cmap unit-tests on Travis by utilizing a NodeCMapReaderFactory
#8024 Open PDF attachments in the viewer instead of an unconditional download
#8081 iOS Chrome: Fix broken download button
#8091 Gulp: migrate baseline target from make.js
#8105 Always check all Kids nodes, in Catalog.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 that Dicts found in Object Streams are assigned an objId in XRef.fetch
#8110 Interactive forms: make choice widget options inheritable (issue 8094)
#8072 Annotations: move operator list addition logic to src/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 couple eslint-disable statements in web/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 the newWindow flag in white-listed app.launchURL JavaScript actions (PR 7794 follow-up)
#8126 Ensure that we don't ignore 0 values in Page.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 Return undefined instead of Dict.empty from Page.getInheritedPageProp for non-existent properties to prevent possible future bugs
#8130 Don't include web/compatibility.js in the output for gulp lib (PR 8120 follow-up)
#8138 Get rid of element.removeChild(element.firstChild) usage (bug 1345253)
#8132 Viewer: enable find functionality for small devices
#8144 Widget annotations: do not crash if Parent 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 findbar title attributes, in viewer.html, that doesn't agree with the l10n/en-US/viewer.properties file
#8154 Change to conditions that pdfjsLib
#8168 Normalize the BBox entry in Tiling Pattern dictionaries (issue 8117)
#8174 Adjust the yoda 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)
#8164 Don't read past the EOI marker for JPEG images with non-default restart interval (issue 7828)
#8183 Ensure that PDFDocument.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 proper MessageHandler for PartialEvaluator.getTextContent to avoid errors for fonts relying on built-in CMap files (PR 8064 follow-up)
#8196 Remove unnecessary xref parameters from various method signatures in PartialEvaluator, since this.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 simple RefSetCache to significantly improve the performance of Catalog.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 the zoomLayer into a helper method, and use that in PDFPageView.reset to ensure that the entire zoomLayer 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 the RenderTask with an actual Error, instead of just a string, when rendering is cancelled
#8222 ios: Patch cancelAnimationFrame whenever fakeRequestAnimationFrame is used
#8235 Disable the NativeImageDecoder in the node/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

26 Jan 20:54
Compare
Choose a tag to compare

Changes:

#7692 Release of 1.6.210
#7670 Only skip parsing a stream in Parser_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 from src/core/fonts.js (PR 7322 follow-up)
#7668 Prevent an infinite loop in XRef_fetchUncompressed for encrypted PDF files with indirect objects in the /Encrypt dictionary (issue 7665)
#7727 Let Parser_makeFilter pass in the DecodeParms data to various image Streams, instead of re-fetching it in various [...]Stream.prototype.ensureBuffer methods
#7728 Gulp: port the all, extension and jsdoc targets
#7730 Fix a couple of JSDoc @typedefs to use @property (instead of @param) to fix some missing documentation when running gulp 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 a docBaseUrl parameter to PDFJS.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 to PDFLinkService_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 for Launch 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 Use stringToPDFString to sanitizing bad "Prefix" entries in Page Label dictionaries, and add more validation
#7698 Ignore reserved commands when parsing operands in CFFParser_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 the customScaleOption disabled to prevent it being keyboard accessible (bug 1315608)
#7794 [api-minor] Add support for a couple of white-listed JavaScript actions that contains valid URLs (issue 3897, bug 843699)
#7800 Replace the Safari detection in checkRangeRequests 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 out args if it's an Array instead of replacing it with null in EvaluatorPreprocessor_read (issue 7804)
#7789 Refactor toolbar.
#7738 Adds SVG rendering capabilities to the main viewer.
#7826 Prevent "unreachable code after return statement" warnings from PDFPageView_paintOnSvg in the addons
#7830 Return a mock object in paintOnSvg when SVG rendering is not supported, to prevent TypeErrors in the addons
#7793 Rename the ViewHistory localStorage (and sessionStorage) key from database to pdfjs.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 for Catalog.parseDestDictionary
#7700 Improve rendering of non-embedded NuptialScript font
#7628 Fallback to the StandardEncoding for Nonsymbolic fonts without /Encoding entry (issue 7580)
#7858 Make the keyboard shortcuts Ctrl + Up/Down behave as Home/End (issue 7852)
#7856 Ensure that PartialEvaluator_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 misplaced false from a condition in fixMetadata, in metadata.js, since it currently short circuits the entire condition
#7884 Ensure that we resolve indirect objects in Filter and DecodeParms arrays in parser.js
#7873 Document: handle indirect objects in MediaBox and CropBox 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 the Preferences initialization/fetching code to the top of PDFViewerApplication.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 of Opt entries in ChoiceWidget 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 Let finishPaintTask in pdf_page_view.js return a promise instead, to avoid having to throw in the paintTask.promise rejection handler, and don't reject the PDFPageView_draw promise when rendering is cancelled
#7920 Improve the handling of Encoding dictionary, with Differences array, in PartialEvaluator_preEvaluateFont
#7926 [api-minor] Ensure that the getDocument Promise is rejected if the loadingTask is destroyed, or an Error is thrown, inside of the onPassword callback (issue 7806)
#7934 Unit test files as modules
#7935 Enable the no-else-return ESLint rule
#7939 Enables some unit tests on travis.
#7941 Replace direct lookup of uniquePrefix/idCounters, in Page instances, with an idFactory containing an createObjId method instead
#7942 Fixes preprocessor testing and adds deadcode removal.
#7943 Various fixes for the external/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 Rename annotation_layer_spec.js to annotation_spec.js to better describe what is actually tested, and simplify the FileAttachmentAnnotation 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 the space-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 the no-lone-blocks ESLint rule
#7980 Fix #7978: Fixes ESLint yoda rule for the URL polyfill.
#7979 Enable the no-unsafe-finally/no-octal/no-useless-call ESLint rules
#7973 Enable the spaced-comment ESLint rule
#7985 Fixes IE9 document.readyState and input.type=number issues.
#7977 Ensure that we use the correct paintedViewport in PDFPageView.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 the no-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 bundling src/core/network.js into the FIREFOX/MOZCENTRAL builds (PR 7322 follow-up)
#7987 [api-minor] Adds noopener and nofollow to rel attribute of hyperlinks.
#8000 Version 1.7

v1.6.210

04 Oct 17:20
Compare
Choose a tag to compare

Changes:

#7236 Release of 1.5.188
#7237 Prevent accidentally overriding the error function in the commonobj messageHandler in api.js (issue 7232)
#7130 Add element to text layer even if width === 0
#7241 Makes importl10n and server async gulp functions.
#7202 Refactors dependencies of PDFViewerApplication on external services
#7240 Moves bundle target/task to gulpfile.js
#7251 Makes defines parameter non-optional in createBundle.
#7255 Mention web application usage in README.md
#7256 Port the publish target to Gulp
#7262 Fixes weird loop in the bidi.js.
#7254 Introducing EventBus for the viewer UI.
#7268 Better components examples.
#7266 Removes circular dependency of secondary toolbar on app.js.
#7272 Adds post UI control change events.
#7273 Prevent "Prefixed Fullscreen API is deprecated." warnings in the MOZCENTRAL version (issue 7270)
#7279 Fixes unneed conversion to array in CFF encodeInteger.
#7260 Moves all testing into gulpfile.
#7281 Fixes some static analysis warnings and recommendations
#7242 [Bug 1194700] Ensure that the customScaleOption is hidden in e10s
#7285 Split the font_spec.js unit-tests into cff_parser_spec.js and type1_parser_spec.js
#7298 Update link to CONTRIBUTING.md
#7301 Update grab_to_pan.js
#7302 Ignore 'endobj' commands inside of ObjStm streams (issue 5241, bug 898610, bug 1037816)
#7299 Prevent intermittent "Node was not found" errors when removing the zoomLayer in PDFPageView_draw
#7305 Remove streamsPrivate usage
#7244 Don't use shadow DOM for rendering /
#7306 Enables debugger only when needed.
#7289 Disable pagechange event if page is not changing.
#7295 Use Dict_getArray in more places in src/core/ to avoid issues when Arrays contain indirect objects
#7313 Convert the secondary toolbar to a class
#7317 Moves DEFAULT_PREFENCES into JSON format.
#7315 Solving issue #7307, 'use strict' context in compatibility.js
#7332 Fixes AMD name in web/the pdf_viewer.js.
#7337 Attempt to combine text runs positioned with setTextMatrix
#7340 Add basic unit-tests for unicode.js
#7316 Remove unused variables
#7300 Prevent adding invalid values in CFFDict_setByKey (bug 1068432)
#7344 Remove support for frames in old Chromium versions
#7353 Resolve a regression in the Chromium extension's preferences handling
#7346 Support syncing of settings in Chrome extension
#7352 Let non-viewable Popup Annotations inherit the parent's Annotation Flags if the parent is viewable
#7362 Github -> GitHub
#7374 Fix errors in setGState in PartialEvaluator_getTextContent that prevents text-selection from working properly
#7370 Add opt-out telemetry to the Chrome extension
#7388 Fix typo in telemetry.js, follow-up to #7370
#7361 Attempt to recover valid format 3 FDSelect data from broken CFF fonts (bug 1146106)
#7389 Move the isSpace utility function from core/parser.js to shared/util.js
#7341 [api-minor] Improve handling of links that are using explicit destination arrays
#7404 Force inline block display style for .
#7400 [Firefox addon] Change the minimum supported version to Firefox 38 and remove a bunch old no longer necessary fallback code
#7428 Unbreak the importl10n command by updating the links to point to hg.mozilla.org instead of mxr
#7430 Move Chromium URL rewrite to top of viewer.js
#7409 Upstream the changes from Bug 1242730 - Convert callsites to use channel.async0pen2() within browser/extensions/pdfjs (issue 7386)
#7437 [Firefox addon] Feature detect originAttributes to make it Seamonkey 2.40 compatible
#7427 Skip mapping of glyphs to Unicode "Ideographic space" (issue 7416)
#7438 Update README.md to only guarantee Firefox addon compatibility with the current ESR version
#7390 Add upper-case I as a possible space replacement fallback in Font.spaceWidth to improve text-selection (issue 7180)
#7463 Add back moz-specific fullscreen support code for MOZCENTRAL builds (bug 1268749, PR 7273 follow-up)
#7467 Add a getAttachments unit-test for a PDF file that actually contains attachments
#7441 Fallback to attempt to recover standard glyph names when amending the charCodeToGlyphId with entries from the differences array in type1FontGlyphMapping (issue 7439)
#7473 Update mxr.mozilla.org links to point to dxr.mozilla.org instead
#7453 Expose the text widget's maximum length.
#7455 Ensure that the necessary src/* dependencies are loaded before the viewer, when it's run with gulp server (issue 7448)
#7458 Consolidate updating of various Toolbar state (e.g. page and scale) in one method in PDFViewerApplication
#7479 Change the warn to info in recoverGlyphName to reduce the console spam
#7466 Remove handling of fallback arguments from PDFViewerApplication.open
#7480 Remove the obsolete MozBlobBuilder fallback from the createBlob utility function
#7481 [Firefox addon] Remove compatibility.js
#7478 optimize png images using zopflipng
#7489 trivial spelling fixes
#7485 Ensure that we don't reset the current page view if the user inputs an invalid page number (PR 7289 follow-up)
#7493 Catch errors and continue parsing in parseCMap (issue 7492)
#7490 Don't map glyphs to the Lepcha Unicode block (issue 7426)
#7447 Ignore .notdef in thedifferencesarray when building a fallback toUnicode map in PartialEvaluator_buildToUnicode (issue 5256)
#7347 Slightly refactor thefontRefhandling in PartialEvaluator_loadFont (issue 7403 and issue 7402)
#7505 Use the latest stable Node.js version on Travis CI and enable caching
#7506 Prevent errors when parsing Annotations with missing (or invalid) /Subtype entries (issue 7446)
#7475 [api-minor] Add a parameter to PDFPageProxy_getTextContent that controls whether PartialEvaluator_getTextContent will attempt to combine same line text items
#7502 Remove the previousPageNumber parameter from the pagechanging/pagechange events, and stop dispatching the events if the input is out of bounds
#7510 Remove previousPageNumber from the B2G viewer
#7511 Convert the B2G viewer from an extension to an example
#7519 Stop building the AMO extension
#7520 Add more unit-tests for primitives.js
#7526 Add validation of the rotation argument passed to set pagesRotation in PDFViewer
#7529 Log an error when the value passed to set currentPageNumber is out of bounds (PR 7502 followup)
#7532 Remove an obsolete comment for onAfterDraw in pdf_viewer.js
#7534 Add a parameter to the isName function that enables checking not just that something is a Name, but also that the actual name properties matches
#7548 Avoid window.print in a microtask
#7521 Bug 1291709 - PdfjsChromeUtils.jsm leaks browser.xul windows.
#7555 Add unit-tests for asynchronous methods in primitives.js
#7330 Try to prevent CanvasGraphics_getSinglePixelWidth from intermittently returning incorrect values in Firefox (issue 7188)
#7563 Upstream l10n changes from Bug 1259859.
#7573 [mobile-viewer] Add an async close method to the example, and change open to also be async (issue 7571)
#7540 Add a unit-test to check that ProblematicCharRanges contains valid entries
#7574 Remove unused globals from fonts unit test file
#7570 Create a fallback annotation id for entries in Annots dictionaries that are not indirect objects (issue 7569)
#7440 Prevent destinations with bad left/top values from scrolling the wrong page into view (bug 874482)
#7575 Update translations
#7387 Attempt to ignore multiple identical Tf (setFont) commands in PartialEvaluator_getTextContent (issue 5808)
#7579 Ensure that the zoom buttons are disabled correctly if the scale is smaller/larger than MIN_SCALE/MAX_SCALE in PDFViewerApplication._updateUIToolbar
#7583 Change the GoToPage Named Action to select the contents of the pageNumber input, rather than just focusing the element
#7539 [api-minor] Expanding divs to improve selection
#7585 Minor code style improvements after #7539
#7586 Move the Preferences initialization/fetching code to the top of PDFViewerApplication.initialize, and add a enhanceTextSelection preference to the viewer
#7592 Revert the commits from pull request #7586 for causing addon issues
#7407 Assign the quantizationTables after parsing the entire JPEG image, to prevent issues when the DQT (Define Quantization Tables) marker is encountered after SOF{n} (Start of Frame) markers (issue 7406)
#7591 Change src/core/jpg.js to use the error utility function instead of throwing
#7588 Use a WeakMap in src/display/text_layer.js
#7595 In display/api.js ensure that we always reject with an Error in JpegDecode, and adjust a couple of other rejection sites as well
#7596 Improve the structure for widget annotations
#7602 Render interactive form (AcroForm) text widget annotations
#7619 Only update the max-height of the SecondaryToolbar when it's actually visible
#7609 Add a enhanceTextSelection preference
#7600 Check that Type1C fonts does not actually contain OpenType font files (issue 7598)
#7546 Don't duplicate the first entry in the charCodeToGlyphId map for CIDFontType2 fonts with a CIDToGIDMap that already mapped the first entry to a non-zero glyphId (issue 7544)
#7621 Add a couple more, mostly text, reference tests for non-embedded symbolic fonts without included encoding information
#7622 Text widget annotations: implement maximum length and text alignment
#7624 Adding "proper" message port for fake worker.
#7623 Change src/core/jpx.js to use the error utility function instead of using throw new Error
#7626 Fix lint warnings in URL polyfill
#7629 Text widget annotations: implement unit testing and sanitize data values
#7634 Remove the deprecated mozDash/mozDashOffset canvas 2D context methods
#7632 [EnhanceTextSelection] Make expandTextDivs more efficient by updating all styles at once instead of piecewise
#7636 Drops unneeded HTTP refresh...

Read more

v1.5.188

21 Apr 20:14
Compare
Choose a tag to compare

Changes:

#6753 Wraps worker script if its cross-origin location is detected.
#6915 Refactor lookup hash tables/objects
#6934 Adjust a comment discussing transferred ArrayBuffers, to refer to those buffers being detached, not neutered (consistent with bug 1079844)
#6921 Always display deprecated messages, regardless of the verbosity setting
#6940 Ensure that we don't modify the Dict data when the Differences array of a font contains indirect objects
#6953 Correct the upper bound used when building the transferMap for SMasks (PR 6723 followup)
#6904 Destroy workers when they are no longer needed in the unit tests
#6913 Improve work-around for importScripts bug.
#6938 Fix 'Ready' message sequence for Firefox ext disabled worker.
#6933 Make type 1 font program decryption faster.
#6954 Various setGState improvements
#6971 Replace getAll with getKeys in PartialEvaluator_hasBlendModes to speed up loading of badly generated PDF files (issue 6961)
#6941 Allow local PDF files to be viewed in local frames
#6973 Fix a typo in api.js
#6972 Replace getAll with getKeys in loadType3Data
#6975 Get rid of getAll usage in colorspace.js
#6939 Use UglifyJS to minify files in minified target
#6856 move hasHtml to AnnotationElement
#6982 Remove the only remaining Dict_getAll usage (in evaluator.js) and the method itself
#6987 Remove Opera from the README file as they removed the extension
#6985 Remove XHTML leftovers from the viewer HTML files
#6998 [api-minor] Change getOutline to actually return the RGB color of outline items
#6984 Update JpegImage.getData to support forceRGBoutput for images with numComponents === 1 (issue 6066)
#7007 [Addon] Catch errors in getFindBar (in PdfStreamConverter.jsm) to fix loading of PDF files in the bookmark sidebar (bug 1248959)
#7012 [api-minor] Don't render highlight/underline/squiggly/strikeout annotations that doesn't have popup
#7009 [api-minor] Always expose data.title and data.contents for TextAnnotation
#6988 Implement support for FileAttachment annotations
#7016 Group popup creation code and apply it to more annotation types
#7030 Remove the hasImage property from PDFThumbnailView
#7031 Add a default title for outline items, to prevent display issues if the title is missing
#7036 [SVG] Specify the PDFJS.cMapUrl/PDFJS.cMapPacked parameters in the svgviewer example
#7035 Ensure that PDFFindController_reset actually resets all state (issue 7034)
#7038 Move the sidebar related code from viewer.js into PDFSidebar
#7040 Remove PDFThumbnailViewer_ensureThumbnailVisible
#6879 Makes PDF data reading Streams API friendly.
#7049 Avoid accidentally getting the entire font file in readNameTable (issue 7020)
#7023 Only draw glyphs on canvas if they are in the font or the font file is missing.
#7050 For CIDFontType2 use CID as glyph ID when missing CID to GID map.
#7052 Reverts back un-need change made at #6879.
#6943 Add support for bold/italic styled outline items in the viewer
#7054 Correct a minor name issue in the outline viewer code
#7061 Introducing gulp
#7063 Migrate clean and importl10n target to gulp
#7029 [PDFThumbnailView] Re-factor the canvas to image conversion such that we always render to a canvas, and then replace it with an image once rendering is done
#7046 fonts.js: bad metric overrides when values are zero
#7069 Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894)
#6906 avoid apply transform twice for composite context
#7084 Revert renaming node make to gulp for mozcentral
#7088 Pass the PDFJS.postMessageTransfer parameter to the worker, so that the MessageHandler can be setup correctly in createDocumentHandler (issue 6957)
#7093 Use the correct path when checking if a /l10n directory exists, to avoid errors during gulp importl10n (PR 7063 followup)
#7039 Refactors CMapFactory.create to make it async
#7098 Ensure that TrueType font tables have uint32 checksums
#7100 Removes core/stream circular dependency on core/parser.
#7105 Add an ISSUE_TEMPLATE
#7005 Fixes insertion of blank pages during print if page sizes differ
#7108 Removes frontWindow usage from the stream converter.
#7113 Disables issue6961 test.
#7053 Removes global PDFJS usage from the src/core/.
#7122 Allow unit-tests to use linked PDF files, by having the unittest command download unavailable ones (issue 7117)
#7118 Prevent failures in the Annotation code if the Rect array contains indirect objects (issue 7115)
#7129 Updates Jasmine version.
#7128 Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects
#7102 Log uncaught global errors.
#7133 Faster unit-tests by using beforeAll/afterAll in api_spec.js
#7066 Parse Type1 font files to determine the various Length{n} properties, instead of trusting the PDF file (issue 5686, issue 3928)
#7078 Refactor the building of toFontChar for non-embedded fonts
#7106 Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101)
#7134 Refactors to remove stream.js dependency on colorspace.js
#7107 Detect premature worker load error
#7146 Extract CFFParser and Type1Parser from fonts.js
#7148 Forces UMD header to have relative path and extension for CommonJS.
#7114 [Bug 1237908] Make pdf.js use the correct principal origin attributes when loading …
#7144 Prepare viewer.js for async loading and module separation.
#7150 Initial browserify example.
#7158 Update Webpack and Browserify example README files
#7169 Specifies package format for jspm.
#7164 Use beforeAll/afterAll in isExternalLinkTargetSet in dom_utils_spec.js (issue 6905)
#7126 Move all PDFJS display/ usages into global.js file.
#7097 Prevents document zooming if still scrolling and meta keys pressed (Issue #7022)
#7170 Prevent the entire viewer from zooming, when quickly switching from scrolling to zooming using the mousewheel (PR 7097 followup)
#7174 Use beforeAll/afterAll in CipherTransformFactory in crypto_spec.js (issue 6905)
#7171 Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get
#7175 Use beforeAll/afterAll in font_spec.js (issue 6905)
#7178 Removes hijack describe() hack from unit tests.
#7176 Allow SMask be resumed after restore() and better transform after SMask
#7184 [Bug 1260585] Stops bleeding of pattern edges for mesh.
#7185 Support almond.js #7177
#7189 Removing "entry-loader" dependency from webpack.
#7172 Introduces UMD headers to the web/ folder.
#7191 Export the DefaultAnnotationLayerFactory to prevent the viewer components from breaking (PR 7172 followup)
#7201 Ensure that the params parameter of the PredictorStream is a dictionary (issue 7200)
#7197 Remove combineUrl and replace it with new URL. Issue #7183, for reference.
#7190 Dispatch a sidebarviewchanged event in PDFSidebar when the view changes
#7116 Refactor LinkAnnotation slightly, improve handling of the GoToR action, and add unit-tests
#7206 Expose a few non-classes on PDFViewerApplication
#7207 Convert the hand tool to a class
#7211 Add a couple of CipherTransformFactory unit-tests for blank passwords, and move the isDict unit-tests to the correct file
#7210 Split the two paths in PDFImage.resize into separate helper functions, placed in colorspace.js and image.js
#7219 Convert the password prompt to a class
#7233 Adjust incorrect first obj number of "free" xref entry in XRef_readXRefTable (issue 7229)
#7209 Moves all document.getElementById lookups into viewer.js
#7235 Version 1.5

v1.4.20

27 Jan 16:31
Compare
Choose a tag to compare

#6758 Fix incorrect position of text widget
#6683 Adds UMD headers to core, display and shared files.
#6762 Only export Uint32ArrayView when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
#6764 Collapses UMD headers in bundled files.
#6766 Bump versions to 1.3.
#6773 Changing Firefox Addon ID
#6765 Remove unused variables
#6767 Strip referrer from link annotation.
#6778 Fixing externalLinkTarget
#6772 Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/
#6770 Refactor annotation display layer code to use classes
#6780 Implement annotation layer regression testing
#6787 Change test-case issue4914 to an annotations test
#6785 Adds/modifies examples for node.js and webpack.
#6792 Implement support for Popup annotations
#6805 Do not modify data.rect in AnnotationElement_createContainer, since that will corrupt the annotation position on subsequent calls
#6808 Rename and reorder link annotation CSS
#6814 Ensure that the baseTransform is applied when rendering annotations
#6807 Ensure that hidden popups do not use any space
#6813 Implement support for Underline annotations
#6821 Bug 951051 - Better crypto key length recovery.
#6771 Removes hardcoded module loading order
#6819 Implement support for StrikeOut annotations
#6823 Implement support for Squiggly annotations
#6827 Implement support for Highlight annotations
#6724 Add validation for callsubr and callgsubr for type 2 charstrings.
#6837 Fix a typo in the "file" entry for issue3694_reduced in test_manifest.json
#6834 Strip null (\x00) characters from the URLs in LinkAnnotations (issue 6832)
#6842 Update the link location for 'intelisa.pdf' to point to the Internet Archive
#6843 shading-pattern: Decreased Shadings.SMALL_NUMBER
#6825 Adds UMD header to pdf.js and pdf.worker.js files.
#6820 Apply Patterns, if necessary, when rendering text
#6839 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782)
#6855 Issue 6854 - Update the link locations to point to the Internet Archive for tests: 20130226130259, JST2007-5, P020121130574743273239, SFAA_Japanese, TaroUTR50SortedList112
#6858 Issue 6854 - Re-enable testing of 'aboutstacks.pdf'
#6859 Update five linked test cases to point to the Internet Archive
#6860 Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
#6862 Issue 6854 - Update the link locations to point to the Internet Archive for tests: cable, fips197, fit11-talk, geothermal, hmm
#6853 Update the link location for 'issue3666.pdf' to point to the Internet Archive
#6864 Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
#6865 Update the linked test case hmm.pdf to point to the intended version
#6846 Use URL constructor for combineURL.
#6873 Add an extra set of // to the comment for the URL polyfill, since the preprocessor eats one set, thus breaking the world (PR 6846 followup)
#6867 Disable e10s.
#6866 Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
#6869 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
#6871 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
#6875 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1466, issue1629, issue1658, issue1685, issue1687
#6876 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
#6878 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1878, issue1912, issue1936, issue1998, issue2006
#6880 Update links to point to the Internet Archive for issue818, issue919, jai, liveprogramming and mao
#6881 Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
#6884 Remove 'tcpdf_033.pdf.link', since it has been replaced with a reduced test-case
#6883 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
#6885 Replace the linked test-case for issue 1155 with a reduced one
#6886 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2829, issue2853, issue2881, issue3062, issue3999
#6887 Remove 'issue2537.pdf.link', since it has been replaced with a reduced test-case
#6888 Update links to point to the Internet Archive for issue1597, issue2627 and kdchart
#6848 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in sanitizeGlyphLocations
#6895 Update links to point to the Internet Archive for issue2799 and issue5726
#6822 [api-minor] Add support for URLs in the document outline
#6900 Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898)
#6891 Map missing glyphs to the notdef glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
#6803 [api-minor] Add support for PageLabels in the API
#6916 Allow foriegn origin URLs only for hosted viewers.
#6918 Bump version to 1.4
#6919 Update beta and stable.
#6922 Prevent failures in the "scanning for endstream" code, in Parser_makeStream, by handling the case where 'endstream' is split between contiguous chunks (issue 1536)
#6928 Fixes URL polyfill check for MS Edge.
#6930 [api-minor] Change getPageLabels to always return the pageLabels, even if they are identical to standard page numbering

v1.3.91

24 Jan 15:45
Compare
Choose a tag to compare

#6633 Replace the unavailable linked test-case for issue 3263 with a reduced test-case
#6637 Replace the unavailable linked test-case for issue 3207 with a reduced test-case
#6638 Replace the unavailable linked test-case for issue 1655 with a reduced test-case
#6639 Replace the unavailable linked test-case for PR 197 with a reduced test-case
#6642 Replace the unavailable linked test-cases for PR 2606 with reduced test-cases
#6645 Replace the unavailable linked test-case for issue 3405 with a reduced test-case
#6627 Uses editorconfig to maintain consistent coding styles
#6646 Version 1.2.109
#6647 Replace the unavailable linked test-case for issue 845 with a reduced test-case
#6640 Apply transformation matrix to RadialGradient radiuses
#6551 [api-minor] Enables subpixel anti-aliasing for most of the content.
#6656 Replace the unavailable linked test-case for issue 1055 with a reduced test-case
#6662 Ensure that the hidden attribute is always removed from the canvas when rendering is complete (issue 6661)
#6653 Version 1.3
#6619 [api-minor] Moving text layer rendering into src/display and better "text" testing.
#6665 Update README.md to add Seamonkey compatibility
#6669 Use DEFAULT_SCALE instead of 1.0 as the default value if the scale option isn't specified when initializing PDFPageView
#6672 Refactor annotation flags code
#6671 Make stripCommentHeaders less greedy, to ensure that it doesn't eat 'use strict' directive at the top of files (PR 6627 follow-up)
#6676 document_colors_disabled shouldn't escape quotes (compare-locales warning)
#6677 Restore the data.annotationFlags parameter for annotations (PR 6672 follow-up)
#6675 [api-minor] Let getAnnotations fetch all annotations by default, unless an intent is specified
#6679 Improve the comment and deprecation warning for PDFJS.openExternalLinksInNewWindow
#6571 [api-minor] Allows a worker to handle multiple documents.
#6681 [api-minor] Add a parameter to PDFPageProxy_getTextContent that enables replacing of all whitespace with standard spaces in the textLayer (issue 6612)
#6693 Worker shall wait for MessageHandler to be created at api side.
#6697 Set error font for Type3 if its loading failed.
#6700 Replace font.bindDOM() with font.createFontFaceRule() in the FontLoader for MOZCENTRAL specific code (PR 6571 follow-up)
#6699 Improve code structure of the annotation code
#6695 Ensure that Lexer_getName does not fail if a Name contains in invalid usage of the NUMBER SIGN (#) (issue 6692)
#6701 Make use of Util.inherit in src/core/pdf_manager.js
#6698 [api-minor] Replaces UnsupportedManager with callback.
#6712 Use default line height for the text layer
#6715 Remove glyph id's outside the range of valid glyphs.
#6720 Fixes canvas state after smask group ends.
#6725 Fix the charCodeOf method in IdentityToUnicodeMap in order to prevent text selection from breaking
#6727 Replaces test for #6720 to fix botio-linux slow script.
#6723 Adds transfer function support for SMask.
#6736 Use adjustWidths for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903)
#6739 [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash
#6651 Fix chars scaling for standard fonts. (redo of #4908)
#6733 Let Travis lint using node make lint, instead of a hard-coded command
#6743 Update the Node.js version used by Travis, to prevent deprecation warnings in the output
#6745 Reset the styleElement when clearing out loaded fonts (bug 1232071)
#6747 Remove the superfluous PDFJS.disableFontFace = false; statement at the top of font_loader.js (issue 6742)
#6684 shading-pattern: While drawing patterns, use transform to baseTransform first
#6757 Implement constants for all annotation types
#6714 [api-minor] Move annotation DOM manipulation logic to src/display/annotation_layer.js
#6916 Allow foriegn origin URLs only for hosted viewers.

v1.4.11

22 Jan 18:42
Compare
Choose a tag to compare

#6758 Fix incorrect position of text widget
#6683 Adds UMD headers to core, display and shared files.
#6762 Only export Uint32ArrayView when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
#6764 Collapses UMD headers in bundled files.
#6766 Bump versions to 1.3.
#6773 Changing Firefox Addon ID
#6765 Remove unused variables
#6767 Strip referrer from link annotation.
#6778 Fixing externalLinkTarget
#6772 Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/
#6770 Refactor annotation display layer code to use classes
#6780 Implement annotation layer regression testing
#6787 Change test-case issue4914 to an annotations test
#6785 Adds/modifies examples for node.js and webpack.
#6792 Implement support for Popup annotations
#6805 Do not modify data.rect in AnnotationElement_createContainer, since that will corrupt the annotation position on subsequent calls
#6808 Rename and reorder link annotation CSS
#6814 Ensure that the baseTransform is applied when rendering annotations
#6807 Ensure that hidden popups do not use any space
#6813 Implement support for Underline annotations
#6821 Bug 951051 - Better crypto key length recovery.
#6771 Removes hardcoded module loading order
#6819 Implement support for StrikeOut annotations
#6823 Implement support for Squiggly annotations
#6827 Implement support for Highlight annotations
#6724 Add validation for callsubr and callgsubr for type 2 charstrings.
#6837 Fix a typo in the "file" entry for issue3694_reduced in test_manifest.json
#6834 Strip null (\x00) characters from the URLs in LinkAnnotations (issue 6832)
#6842 Update the link location for 'intelisa.pdf' to point to the Internet Archive
#6843 shading-pattern: Decreased Shadings.SMALL_NUMBER
#6825 Adds UMD header to pdf.js and pdf.worker.js files.
#6820 Apply Patterns, if necessary, when rendering text
#6839 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782)
#6855 Issue 6854 - Update the link locations to point to the Internet Archive for tests: 20130226130259, JST2007-5, P020121130574743273239, SFAA_Japanese, TaroUTR50SortedList112
#6858 Issue 6854 - Re-enable testing of 'aboutstacks.pdf'
#6859 Update five linked test cases to point to the Internet Archive
#6860 Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
#6862 Issue 6854 - Update the link locations to point to the Internet Archive for tests: cable, fips197, fit11-talk, geothermal, hmm
#6853 Update the link location for 'issue3666.pdf' to point to the Internet Archive
#6864 Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
#6865 Update the linked test case hmm.pdf to point to the intended version
#6846 Use URL constructor for combineURL.
#6873 Add an extra set of // to the comment for the URL polyfill, since the preprocessor eats one set, thus breaking the world (PR 6846 followup)
#6867 Disable e10s.
#6866 Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
#6869 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
#6871 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
#6875 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1466, issue1629, issue1658, issue1685, issue1687
#6876 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
#6878 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1878, issue1912, issue1936, issue1998, issue2006
#6880 Update links to point to the Internet Archive for issue818, issue919, jai, liveprogramming and mao
#6881 Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
#6884 Remove 'tcpdf_033.pdf.link', since it has been replaced with a reduced test-case
#6883 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
#6885 Replace the linked test-case for issue 1155 with a reduced one
#6886 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2829, issue2853, issue2881, issue3062, issue3999
#6887 Remove 'issue2537.pdf.link', since it has been replaced with a reduced test-case
#6888 Update links to point to the Internet Archive for issue1597, issue2627 and kdchart
#6848 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in sanitizeGlyphLocations
#6895 Update links to point to the Internet Archive for issue2799 and issue5726
#6822 [api-minor] Add support for URLs in the document outline
#6900 Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898)
#6891 Map missing glyphs to the notdef glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
#6803 [api-minor] Add support for PageLabels in the API
#6916 Allow foriegn origin URLs only for hosted viewers.

v1.2.109

16 Nov 19:26
Compare
Choose a tag to compare

Changes:

#6464 Version 1.1.469
#6200 Refactor the previous history rewriting logic
#6450 Update the link location for the issue3115 test file
#6452 Replace the unavailable linked test-case for PR 2875 with a reduced test-case
#6482 Ensure that the baseTransform is always defined for TilingPatterns
#6468 Don't clear the canvas until re-rendering is finished when the scale or rotation is changed (issue 6467)
#6475 Tweak PDFPageView to reflect that this.annotationLayer is an AnnotationsLayerBuilder instance, instead of a DOM element (PR 5552 follow-up)
#6485 Prevent PartialEvaluator_buildFormXObject from failing if the Matrix or BBox contains indirect objects
#6411 Remove Parser_fetchIfRef since it's obsolete
#6489 Upstream changes from Bug 1202902 - Give loader scripts and XUL frame scripts a lexical scope that doesn't break everything?
#6473 Upstream the changes from Bug 1165272 - unify Get*CodebasePrincipal with createCodebasePrincipal in nsIScriptSecurityManager
#6501 Slightly improved getPage unit-tests
#6494 Add a unit-test for bug 1020226
#6491 Make XRef_indexObjects even more robust against bad PDF files, by checking for the existence of 'trailer' if 'xref' is not found
#6500 Add a (linked) test-case for PR 4897
#6499 Add a (linked) load test for issue 4387
#6503 Follow-up to PR 6489 - Upstream changes from Bug 1202902
#6502 Add a reduced load test-case for bug 1020858
#6476 Right-size the map array in PartialEvaluator_readToUnicode
#6520 [CRX] Call callback instead of onCompleted
#6434 Replace the unavailable linked test-case for issue 4436 with a reduced test-case
#6524 Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode
#6481 Add a (linked) test-case for issue 4914
#6528 Ensure that Dict_getArray doesn't fail if xref in undefined (PR 6485 follow-up)
#6531 Fixes bluebeam password protection issue
#6532 Add unit-tests for PR 6531
#6540 Add unit-tests for the onPassword/onProgress callbacks of the API
#6550 Ignore operators that are known to be unsupported
#6543 Prevent getOperatorList from failing to correctly parse OPS.paintXObject for TilingPatterns that are missing some /Resources entries (issue 6541)
#6554 Add a reduced test-case for issue 4575
#6557 Pushing update reason for gh-pages and bower.
#6546 [api-minor] Adds controlled destruction of the worker.
#6555 Update version number for minor API changes.
#6558 Add a reduced test-case for issue 6151
#6560 Prevent TypeError: page is undefined when the document has been destroyed (PR 6546 follow-up)
#6562 Improved get fingerprint unit-tests (PR 5124)
#6566 Add a totalLength getter to OperatorList, since the length is zero after flushing
#6568 [api-minor] Add an optional param to DocumentInitParameters for speci…
#6552 Better CSS scaling for deviceRixelRatio != 1.
#6578 Ignore any pending data when worker is terminated.
#6576 Replace the linked test-case for issue 1293 with a reduced test-case
#6445 Fix exception when rotate page without a document
#6580 Find match count (rebase of #5051)
#6585 Replace the linked test-case for issue 3879 with a reduced test-case
#6587 Move VIEW_HISTORY_MEMORY constant to view_history.js
#6588 Better spacing in text layer.
#6586 Create a new indeterminate loading bar animation for the default viewer
#6591 Non/less flashing text layer during selection.
#6597 Ensure that the textLayer has the same dimensions as the canvasWrapper (issue 6596)
#6595 Uses document.currentScript for pdf.worker.js path.
#6590 Combines standalone chars into text groups.
#6601 Fixes incorrect PDF file font metrics.
#6602 Adding to authors
#6604 Add a reduced text test-case for issue 4665
#6607 Prevent readCmapTable from failing if the cmap is missing in TrueType fonts
#6608 Improve error message for non-existent local files
#6617 Correctly handle /FitH destinations with null as the parameter
#6620 Use random port in test webserver
#6318 For documents with different page sizes, ensure that the correct page becomes visible on load when e.g. the 'page' hash parameter was provided (bug 1191279, issue 6393)
#6600 Improve reliability of the test server
#6622 Remove mozcentral test files.
#6610 Replace the unavailable linked test-case for issue 2128 with a reduced test-case
#6625 Dispatch the pagerendered event when zooming is only done with CSS (issue 6463)
#6599 Generate better API documentation
#6629 Downgrade the JSHint version in order to fix linting failures on Travis
#6628 Ignore the /Mask entry in images unless its /ImageMask entry is explicitly set to true (issue 6621)
#6630 Fix minor capitalization issue in viewer