Skip to content
Pre-release
  • v2.6.347
  • 3be9c65
  • Compare
    Choose a tag to compare
    Search for a tag
Pre-release
  • v2.6.347
  • 3be9c65
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Sep 3, 2020 · 295 commits to master since this release

This release features support for form filling (AcroForm) and layers (optional content). Moreover, the default viewer is redesigned to match Firefox's Photon design, TypeScript definitions are shipped and various performance improvements and bugfixes are included.

Changes since v2.5.207:

#11948 Bump versions in pdfjs.config and update the getting started page of the website for the new release
#11958 [api-minor] Remove the deprecated PDFDocumentProxy.getOpenActionDestination method (PR 11644 follow-up)
#11967 Do not transform jpeg RGB components
#11964 Fix pdfjs-dist/webpack causing errors with certain configs
#11953 For #11838: trigger fallback bar after user clicks in pdf
#11972 Change the loadedChunks property, on ChunkedStream instances, from an Array to a Set
#11963 Avoid calling Math.pow if possible.
#11974 A couple of small image caching/sending improvements
#11976 Remove unused methods from NetworkManager, in src/display/network.js
#11978 Improve unit test coverage for primitives
#11977 Convert the RefSet primitive to a proper class and use a Set internally
#11985 Convert some Objects to Maps in ChunkedStreamManager, and move the isEmptyObj helper function to the test utils
#11987 Update SVGGraphics to account for globally cached images (PR 11912 follow-up)
#11992 Prevent the (old) preprocessor from appending trailing whitespace when removing closing HTML comments
#11993 Change the dependencies property, on OperatorList instances, from an Object to a Set
#11969 For #11961: collect telemetry on all unique unsupported features that…
#11997 Add basic support for the nullish coalescing operator ??
#11999 Update packages and translations
#12000 Ensure that PDFImage.buildImage won't accidentally swallow errors, e.g. from ColorSpace parsing (issue 6707, PR 11601 follow-up)
#12001 Add local caching of ColorSpaces, by name, in PartialEvaluator.getOperatorList (issue 2504)
#12002 Small improvements in CFFCompiler.encodeNumber and CFFCompiler.encodeFloat
#12004 Convert the code in src/core/worker.js to use ES6 classes
#12005 Convert the code in src/core/cff_parser.js to use ES6 classes
#12017 Convert the PDFPageProxy.intentStates property from an Object to a Map
#12016 Tweak the QueueOptimizer to recognize OPS.paintImageMaskXObject operators as repeated when the "skew" transformation matrix elements are non-zero (issue 8078)
#12021 Move the fetchBuiltInCMap method to the PartialEvaluator.prototype
#12012 Improve (local) caching of parsed ColorSpaces (PR 12001 follow-up)
#12024 Update Needle to 2.5.0 or greater.
#12028 Attempt to detect inline images which contain "EI" sequence in the actual image data (issue 11124)
#12032 Update packages and translations
#12041 Replace Mozilla Labs by just Mozilla
#12049 Enable the no-promise-executor-return ESLint rule
#12036 Add at least some test-coverage for the RenderTask.onContinue functionality
#12043 Add a reduced test-case for issue 4260 (PR 4521 follow-up)
#12044 Adjust the heuristics used when dealing with rectangles, i.e. re operators, with zero width/height (issue 12010)
#12040 Replace non-inclusive "whitelist" term with "allowlist"
#12039 [api-minor] Use the NodeCanvasFactory/NodeCMapReaderFactory classes as defaults in Node.js environments (issue 11900)
#12034 Add local caching of Functions, by reference, in the PDFFunctionFactory (issue 2541)
#12057 Allow BaseLocalCache to, optionally, only allocate storage for caching of references (PR 12034 follow-up)
#12059 Convert the code in src/core/image.js to use ES6 classes
#12060 Convert the code in src/core/evaluator.js to use standard classes
#12072 Bump npm from 6.14.5 to 6.14.6
#12056 Refactor/simplify the "delayedFallback" handling in the default viewer
#12070 Re-factor the idFactory functionality, used in the core/-code, and move the fontID generation into it
#12083 Remove the IR (internal representation) part of the ColorSpace parsing
#12063 Tweak the heuristic, in src/core/jpg.js, that handles JPEG images with a wildly incorrect SOF (Start of Frame) scanLines parameter (issue 10989)
#12092 Update packages and translations
#12090 Stop special-casing the (very unlikely) "no /XObject found"-scenario, when parsing OPS.paintXObject operators, in PartialEvaluator.{getOperatorList, getTextContent}
#12099 Use a RefSet, rather than a plain Object, for tracking already processed nodes in PartialEvaluator.hasBlendModes
#12085 Make the detection of Node.js environments on Electron strict.
#12089 Convert RefSetCache to a proper class and to use a Map internally
#12087 Add local caching of "simple" Graphics State (ExtGState) data in PartialEvaluator.{getOperatorList, getTextContent} (issue 2813)
#12101 Add a new size getter and getRawValues method, to Dict instances, to simplify some code
#12023 Fix auto-rotate for printing landscape PDFs where the first page is also landscape
#12114 Remove a couple of unnecessary PDFJSDev checks from the viewer
#12106 [api-minor] Add an annotation storage in order to save annotation data in acroforms
#12122 Update packages and translations
#12124 Include the browser name when printing unit-test results
#12126 Attempt to reduce intermittent failures in the "cleans up document resources during rendering of page" unit-test
#12125 Improve test bot stability
#12127 Improve how Type3-fonts with dependencies are handled
#12135 [src/core/worker.js] Remove a useless Promise handler from the pdfManagerReady function
#12136 Ignore fetch() errors, in PDFFetchStreamRangeReader, once the request has been aborted
#12107 Add support for checkboxes printing
#12143 Fix hanging reference test (PR 12107 follow-up)
#12141 Populate the find field with the search query when URL has #search hash
#12147 [api-minor] Fix the AnnotationStorage usage properly in the viewer/tests (PR 12107 and 12143 follow-up)
#12144 Prevent Uncaught (in promise) AbortException when running the unit-tests
#12148 Revert "Populate the find field with the search query when URL has #search hash"
#12131 [api-minor] Allow loading pdf fonts into another document.
#12151 Revert "[api-minor] Allow loading pdf fonts into another document."
#12153 Unit test improvements
#12108 Add support for radios printing
#12102 Add types annotations
#12162 Tweak for the type of PageViewportParameters.viewBox (PR 12102 follow-up)
#12161 Add types to functions exported as API in src/pdf.js (PR 12102 follow-up)
#12157 Fix the type of SVGGraphics (PR 12102 follow-up)
#12160 Use typedef to define the type of GlobalWorkerOptions (PR 12102 follow-up)
#12095 Add support for optional marked content.
#12156 Improve the types generation and API documentation (PR 12102 follow-up)
#12163 Re-factor the dispatching of "attachmentsloaded" events, when the PDF document contains no "regular" attachments
#12171 Attempt to reduce intermittent failures in the "multiple render() on the same canvas" unit-test
#12168 Fix the gulp types task to run on Windows, and place the TypeScript definitions correctly in pdfjs-dist
#12172 Fix the type definition of TypedArray. (PR 12156 follow-up)
#12174 Do the AppOptions.get("printResolution") lookup once in web/app.js , when initializing PDFPrintServiceFactory-instances, rather than for every printed page
#12173 [api-minor] Fix the annotationStorage parameter in PDFPageProxy.render
#12179 Add support for Object.fromEntries
#12169 Extract common methods from PDFOutlineViewer/PDFAttachmentViewer into a new abstract BaseTreeViewer class
#12175 Support textfield and choice widgets for printing
#12182 Fix the type of PDFDocumentLoadingTask.destroy.
#12154 [api-minor] Allow loading pdf fonts into another document.
#12187 Add a test-case for issue 4398
#12188 Update packages and translations
#12176 Support multiline textfields for printing
#12177 Support comb textfields for printing
#12186 Fix bad truetype loca tables.
#12192 A couple of (small) tweaks of the AnnotationStorage (PR 12173 follow-up)
#12193 Set direction: ltr; on the canvases used during printing (bug 1335712)
#12191 Remove the disableCreateObjectURL option from web/app_options.js
#12137 Add support for saving forms
#12201 Enable renderInteractiveForms by default.
#12211 Wait until saving has finished before resetting PDFViewerApplication._saveInProgress (PR 12137 follow-up)
#12212 Bug 1643508 - Disable touch-based pinch zooming on pdf.js.
#12210 Keep the original class/function names when minifying code (issue 12209)
#12203 Bug 1392361 - Fix zooming sensitivity on macOS
#12219 Add (basic) support for transfer functions to Images (issue 6931, bug 1149713)
#12227 Include image_decoders-es5/minified-es5 in the pdfjs-dist library (issue 12220)
#12229 Dispatch event when annotations have finished rendering.
#12230 Implement reference testing for printing
#12250 Update the zoom dropdown width calculation to work better in locales with long zoom-strings (PR 11077 follow-up)
#12251 Return the query with the findcontrolstate
#12241 confirm if leaving a modified form without saving
#12248 Support file save triggered from the Firefox integrated version.
#12247 Improve the field value parsing for choice widgets to handle null values
#12256 #12241 followup - move event listener to PDFViewerApplication.load
#12244 fix webpack config problem caused by breaking changes of worker-loader
#12260 Replace menu dropdown icon
#12261 Also enable renderInteractiveForms by default in the viewer components (PR 12201 follow-up)
#12265 Don't warn when navigating away from a modified form, if printing has occurred (issue 12262)
#12267 Update packages and translations
#12263 Fix AcroForm printing/saving edge cases
#12268 Reduce the leading padding for the numPages span (PR 11077 follow-up)
#12270 Accent positioning in Type1 seac glyphs
#12276 Access the XRef/Catalog data correctly in the "GetStats"/"GetPageIndex" handlers in src/core/worker.js
#12271 Improve AcroForm/XFA form type detection
#12285 Ensure that the sourceEventType parameter is actually optional in PDFViewerApplication.{download, save} (PR 12248 follow-up)
#12286 Use a link, rather than window.open, when opening PDF attachments in Firefox (bug 1661259)
#12293 Download, rather than opening, PDF attachments in Firefox (bug 1661259, PR 12286 follow-up)
#12287 Bug 1661226 - Push button are not rendered with renderInteractiveForms enabled
#12298 Tweak the vertical positions of the findbar and secondaryToolbar (PR 11077 follow-up)
#12259 Fix handling of symbolic fonts and unicode cmaps.
#12300 Fix various :hover effects in the findbar (PR 11077 follow-up)
#12299 Update the indeterminate progressBar to the new design (PR 11077 follow-up)
#12170 [api-minor] Add support for toggling of Optional Content in the viewer (issue 12096)
#12301 Add (basic) support for Stylelint, to allow linting of CSS files
#12296 Add support, in Dict.merge, for merging of "sub"-dictionaries
#12310 Add support for /Print and /SaveAs named actions in the viewer (issue 12308)
#12315 print: Make the firefox printing code able to fail and be re-invoked.
#12321 Ensure that the viewer property, on BaseViewer-instances, is a valid div-element (issue 12320)

Assets 4
  • v2.5.207
  • 0974d60
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.5.207
  • 0974d60
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Jun 1, 2020 · 642 commits to master since this release

This release features performance improvements thanks to improved image caching and JPEG decoding.

Changes since v2.4.456:

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

Assets 4
  • v2.4.456
  • 228a591
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.4.456
  • 228a591
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Mar 19, 2020 · 849 commits to master since this release

From now on we produce a non-translated/non-polyfilled build for modern browsers by default. However, we also provide the translated/polyfilled build for older browsers in a separate bundle (with the -es5-dist.zip suffix).

Changes since v2.3.200:

#11202 Bump versions in pdfjs.config
#11198 [PDFSidebarResizer] Add a couple of (small) readability improvements in the code
#11212 [MessageHandler] Some additional (small) clean-up of the code
#11213 Update the gulp importl10n command to fetch the active language codes
#11186 Improve the heuristics, in PartialEvaluator._buildSimpleFontToUnicode, for glyphNames of the Cdd{d}/cdd{d} format (issue 9655)
#11209 Use square brackets for optional properties in the JSDoc comments of src/display/api.js
#11222 Remove locales which are unmaintained and/or not shipping in Nightly (PR 11213 follow-up)
#11219 [api-minor] Replace all deprecated calls with throwing of actual Errors
#11218 Attempt to fallback to a default font, for non-available ones, in PartialEvaluator.loadFont
#11220 Added create react app example with typescript and basic usage
#11228 Enable the ESLint rule accessor-pairs for Classes
#11232 Cache processed 'ExtGState's in PartialEvaluator.hasBlendModes to avoid unnecessary parsing/lookups
#11234 Convert a number of reference tests, for documents with corrupt XRef tables, from load to eq
#11237 Update src/shared/compatibility.js to only run with SKIP_BABEL = false set
#11235 Improve the JSDoc comments
#11246 Tweak the isIOS check, in web/viewer_compatibility, to attempt to support newer Safari versions (issue 11245)
#11247 Change variable assignment
#11253 Avoid handling keyboard shortcuts for contentEditable DOM elements (issue 7156)
#11250 Silence the Autoprefixer message being printed with all build logs
#11256 [Firefox] Remove unused addon l10n files (PR 9566 follow-up)
#11257 Remove/update skipPages annotations from test/test_manifest.json
#11231 Allow over-writing entries, in XRef.indexObjects, only when the generation number matches (issues 11230, 11139, 9552, 9129, 7303)
#11260 Update npm packages
#11243 Add a fallback for non-embedded composite Verdana fonts (issue 11242)
#11261 Re-factor sending of various Exceptions from the worker to the API
#11262 Re-add the en-US chrome.properties l10n file, to avoid it being removed at mozilla-central (PR 11256 follow-up)
#11263 Attempt to reduce resource usage, by not eagerly fetching all pages, for long/large documents
#11268 refactor: viewer.css refactored, duplications removed
#11271 Re-factor StatTimer usage, in src/display/api.js, and remove DummyStatTimer
#11273 [api-minor] Support custom offsetX/offsetY values in PDFPageProxy.getViewport and PageViewport.clone
#11282 Update l10n files
#11281 Support Blend Modes which are specified in an Array of Names (issue 11279)
#11283 Ensure that PartialEvaluator.hasBlendModes handles Blend Modes in Arrays (PR 11281 follow-up)
#11284 Make the ObjectLoader use more efficient methods when determining if data needs to be loaded
#11294 Remove some unused require statements, used when loading fake workers, in non-PRODUCTION mode
#11290 [MessageHandler] Re-factor and convert the code to a proper class
#11301 Ensure that the peekByte methods, on the various Streams, handles end of data correctly (PR 5286 follow-up)
#11296 Allow skipping of errors when parsing broken/unsupported ColorSpaces (issue 6707, issue 11287)
#11302 Slightly re-factor setting of the link target in addLinkAttributes
#11304 Re-factor the ObjectLoader._walk method to be properly asynchronous
#11307 Support UTF-16 little-endian strings in the stringToPDFString helper function (bug 1593902)
#11308 Prevent browser exceptions from incorrectly triggering the assert in PDFPageProxy._abortOperatorList (PR 11069 follow-up)
#11312 Convert Catalog.getPageDict to an async method
#11314 Revert "Convert Catalog.getPageDict to an async method"
#11313 Ensure that Popup annotations, where the parent annotation is a polyline, will always be possible to open/close (issue 11122)
#11305 Fix nodejs core module : ignore url module for web browser
#11315 Include a reduced test case for annotations without a Border/BS entry (PR 6180 follow-up)
#11300 Simplifies code contributions by automating the dev setup
#11316 Convert globalScope and isNodeJS to proper modules
#11318 [PDFHistory] Move the IE11 pushState/replaceState work-around to src/shared/compatibility.js (PR 10461 follow-up)
#11317 Update npm packages
#11334 Use getBytes, rather than looping over getByte, in FlateStream.prototype.readBlock
#11335 Subtract stream.start when getting the startXRef property for documents with a Linearization dictionary (issue 11330)
#11346 Ensure that attempting to print with disableAutoFetch set will fail gracefully (issue 11339)
#11338 Reduce duplication when registering event listeners for the Toolbar buttons, and other small clean-up
#11350 Convert {BaseViewer, PDFThumbnailViewer}._pagesRequests from an Array to a WeakMap
#11353 Remove document.attachEvent code from web/pdf_print_service.js since it's only necessary for old IE versions
#11325 Added custom file transform function
#11354 Enable the getter-return, no-dupe-else-if, and no-setter-return ESLint rules
#11356 Remove outdated, and misleading, JSDoc comment from the PDFDocument class
#11363 Remove the Number.isInteger checks from XRef.fetchUncompressed (PR 8857 follow-up)
#11370 Stop caching Streams in XRef.fetchCompressed
#11373 Slightly simplify the XRef cache lookup in XRef.fetch
#11374 Set the first pdfPage immediately in {BaseViewer, PDFThumbnailViewer}.setDocument
#11382 Fix an incorrect condition in BaseViewer.isPageVisible (PR 10217 follow-up)
#11388 Remove the viewer option from the PDFPresentationMode constructor
#11390 Ensure that PDFDocument.checkFirstPage waits for cleanup to complete (PR 10392 follow-up)
#11391 [api-minor] Replace globalScope with the standard globalThis property instead
#11387 Handle corrupt ASCII85Decode inline images with truncated EOD markers (issue 11385)
#11398 Attempt to improve the PDFDocument error message for empty files (issue 5887)
#11404 [api-minor] Move the ReadableStream polyfill to the global scope
#11407 Bump npm from 6.13.0 to 6.13.4
#11406 Re-factor the find helper function, in src/core/document.js, to search through the raw bytes rather than a string
#11380 Add a reset method to the PDFHistory implementation
#11413 Re-factor the npm test command, used by Travis, to avoid running the 'default_preferences' tasks concurrently (issue 10732)
#11415 Update npm packages and l10n files
#11418 [api-minor] Simplify the fallback fake worker loader code in src/display/api.js
#11422 Use the strict mode assert in the pdf2png Node.js example (issue 10768)
#11425 Use const in viewer_compatibility.js
#11426 Use const in viewer.js
#11427 Use const in view_history.js
#11428 Use const in ui_utils.js
#11429 Use const in toolbar.js
#11436 Update webpack-stream to fix vulnerabiliy reported by npm and dedupe Webpack
#11440 Tweak the "gets page stats after rendering page, with pdfBug set" unit-test to remove an intermittent failure on Travis
#11437 Extract & use createHeaders helper
#11431 Use const in secondary_toolbar.js
#11430 Use const in text_layer_builder.js
#11433 Use const in pdf_thumbnail_viewer.js
#11432 Use const in preferences.js
#11423 Ignore Metadata entries with incorrectly encoded characters, when setting the viewer title (bug 1605526)
#11443 Support OpenAction dictionaries without Type entries when parsing Print actions (issue 11442)
#11446 Enable auto-formatting of the entire code-base using Prettier (issue 11444)
#11445 Include a unit test for OpenAction dictionaries without Type entries (PR 11443 follow-up)
#11449 Move the regular expression, used with auto printing in the viewer, to web/ui_utils.js and also use it in the API unit-tests
#11450 Enable the ESLint prefer-const rule in the web/ directory
#11454 Move the SegoeUISymbol font to the getNonStdFontMap (PR 8698 follow-up)
#11455 Update npm packages and l10n files
#11447 Convert all non-RGBA colors to RGBA colors
#11463 [Firefox] Ensure that telemetry will be correctly recorded even when the PDF header is missing (bug 1606566)
#11472 Update the year in the license_header files
#11466 [Firefox] Slightly simplify how the generator is determined, when sending telemetry data from the viewer
#11474 [api-minor] Remove the Webpack-only npm dependencies from pdfjs-dist (PR 11418 follow-up)
#11465 Ensure that all import and require statements, in the entire code-base, have a .js file extension
#11488 Enable the no-nested-ternary ESLint rule in the web/ directory
#11505 Enable the ESLint no-unneeded-ternary rule
#11504 Add direction: ltr; to the canvases used in examples/learning, to ensure correct text rendering (issue 11457)
#11503 Remove the unused id properties from page and thumbnail canvas/image DOM elements (issue 11499)
#11520 Update the GlobalWorkerOptions.workerSrc JSDoc comment
#11521 Remove the supportsDocumentColors warning in MOZCENTRAL builds (bug 844349 follow-up)
#11519 Enable import/extensions of ESlint plugin to enforce all import have a .js file extension.
#11522 Ensure that the viewer telemetry reporting, and fallback code, runs in development mode and GENERIC builds
#11510 Skip failing FBF tests in Google Chrome when running makeref on the bots
#11529 Display the CSS tab in the interactive examples (issue 11506 follow-up)
#11502 Fix a couple of cases where Prettier broke existing formatting (PR 11446 follow-up)
#11511 Enable the no-nested-ternary ESLint rule (PR 11488 follow-up)
#11497 Add support for Promise.allSettled
#11533 Remove the "useOnlyCssZoom" (debugging) hash parameter
#11489 Remove the FIREFOX build flag, since it's completely unused and simplify a couple of PDFJSDev checks
#11534 Enable the ESLint prefer-const rule globally (PR 11450 follow-up)
#11515 Cache the fallback font dictionary on the PartialEvaluator (PR 11218 follow-up)
#11482 Convert src/core/jpg.js to use the readUint16 helper function in src/core/core_utils.js, rather than re-implementing it twice
#11535 Render Popup annotations last, once all other annotations have been rendered (issue 11362)
#11508 Simplify the handling of unsupported/incorrect markers in src/core/jpg.js
#11537 Send the verbosity level when setting up fake workers (issue 11536)
#11544 Make the decodeHuffman function, in src/core/jpg.js, slightly more efficient
#11545 Use the native URL.createObjectURL method in web/debugger.js
#11542 Add a README file to the /lib folder in pdfjs-dist (issue 11539)
#11546 Fix the indices of arguments for RadialAxial. It is related to #10646.
#11558 Remove the eslint-disable no-var rule from the web/grab_to_pan.js file
#11554 Update npm packages
#11528 Hide .notdef glyphs in non-embedded Type1 fonts and don't ignore Widths
#11559 Fix how curveTo2 (v operator) is translated to SVG
#11567 Add support for CSS variables using the PostCSS CSS Variables package (issue 11462)
#11569 Replace most remaining Element.setAttribute("style", ...) usage with Element.style = ... instead
#11570 Re-factor Toolbar._adjustScaleWidth to improve/simplify how the zoom dropdown width is calculated
#11573 [api-minor] Change PDFDocumentProxy.cleanup/PDFPageProxy.cleanup to return data
#11557 Avoid re-calculating the xScaleBlockOffset when not necessary in JpegImage._getLinearizedBlockData
#11547 Use fewer multiplications in JpegImage._convertCmykToRgb
#11568 Ensure that the PDF header contains an actual number (PR 11463 follow-up)
#11551 Allow skipping of errors when reading broken/corrupt ToUnicode data (issue 11549)
#11579 Ignore spaces when normalizing the font name in Font.fallbackToSystemFont (issue 11578)
#11582 [api-minor] Ensure that the Array.prototype doesn't contain any enumerable properties
#11586 [TextLayer] Immediately set the padding, rather than checking if it's empty, in expandTextDivs
#11593 Remove LoopbackPort.postMessage special-case for polyfilled TypedArrays
#11596 Re-factor how Metadata class instances store its data internally
#11241 [api-minor] Produce non-translated/non-polyfilled builds by default
#11598 Add polyfills to support iteration of Map and Set
#11603 Enable the no-buffer-constructor ESLint rule
#11604 Enable the unicorn/prefer-starts-ends-with ESLint plugin rule
#11602 Move validation of chromium/preferences_schema.json to its own gulp task
#11605 Update gulp lint to support passing of the --fix argument on the command line
#11616 Update the PDF.js web page to link to both versions of the demo viewer (PR 11241 follow-up)
#11607 Add a PDFViewerApplication.initializedPromise property to allow (easier) tracking of when the default viewer has been initialized
#11620 Remove the unused thisArg from RefSetCache.forEach
#11621 Update packages and translations
#11623 Use the ESLint no-restricted-syntax rule to prevent direct usage of new Cmd()/new Name()/new Ref()
#11625 Use the same non-embedded Wingdings fallback for fonts named "Wingdings-Regular" too (PR 5463 follow-up, issue 11451)
#11630 Attempt to clarify, and improve the wording of, the Gitpod section of the README
#11540 Fix text spacing with vertical fonts. #7687 and #11526.
#11608 Add a ignoreDestinationZoom option/preference to allow users to preserve the current zoom level when navigating to internal destinations (issue 5064, 11606)
#11577 Prevent circular references in the /Pages tree
#11590 Update links from IRC to Riot.
#11556 Fix the vertical writing mode with horizontal scaling. #11555.
#11654 Simplify the BaseFontLoader.isFontLoadingAPISupported getter
#11631 [api-minor] Deprecate getGlobalEventBus and update the "viewer components" examples accordingly
#11660 Fix Type1 font parsing when .notdef is not at index zero
#11653 Ensure that there's always a setFont (Tf) operator before text rendering operators (issue 11651)
#11664 Prevent the zoom dropdown icon from being overridden when the element is :active (bug 1619595)
#11671 Update packages and translations
#11672 Slightly simplify the lookup of data in Dict.{get, getAsync, has}
#11673 Update the FontLoader.bind method to avoid explicitly returning undefined
#11667 Add a deprecation warning for the eventBusDispatchToDOM option/preference (PR 11631 follow-up)
#11523 Add a heuristic, in src/core/jpg.js, to handle JPEG images with a wildly incorrect SOF (Start of Frame) scanLines parameter (issue 10880)
#11675 Fix typo in comment
#11676 Slightly improve the BaseViewer.{firstPagePromise, onePageRendered, pagesPromise} functionality
#11680 Prevent lookup errors in PartialEvaluator.hasBlendModes from breaking all parsing/rendering of a page (issue 11678)
#11690 Remove transition effects from toolbar buttons/fields
#11686 Magnifier positioning in reftest analyzer
#11692 Move IsLittleEndianCached/IsEvalSupportedCached to src/shared/util.js, and rename the isSpace helper function to isWhiteSpace
#11695 Remove variable shadowing from the JavaScript files in the web/ folder
#11699 Bump acorn from 6.4.0 to 6.4.1
#11644 [api-minor] Add more general OpenAction support (PR 10334 follow-up, issue 11642)
#11553 Fix the horizontal scaling of texts with SVG backend. #10988
#11698 Don't accidentally accept invalid glyphNames which appear to follow the Cdd{d}/cdd{d} format in PartialEvaluator._buildSimpleFontToUnicode (issue 11697)
#11700 Ensure that the JavaScript-warning is always displayed, in the viewer, regardless of browser printing support
#11706 Move the webViewerOpenFile function, and the "openfile" eventBus listener, since they only matter in GENERIC builds of the default viewer
#11714 Enable the prefer-exponentiation-operator ESLint rule
#11711 Update packages and translations
#11716 [api-minor] Change the pageIndex, on PDFPageProxy instances, to a private property

Assets 4
  • v2.3.200
  • 4ae3f9f
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.3.200
  • 4ae3f9f
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Oct 3, 2019 · 1305 commits to master since this release

Changes since v2.2.228:

#10960 Bump versions in pdfjs.config
#10963 Ensure that PDFViewerApplication.{zoomIn, zoomOut} won't run when PesentationMode is active (PR 10652 follow-up)
#10959 Remove the data-pdfjsprinting attribute on the <body> when destroying FirefoxPrintService/PDFPrintService instances (issue 10948)
#10962 Prevent "Uncaught promise" messages in the console when cancelling TextLayer tasks (PR 10601 follow-up)
#10964 Bump lodash from 4.17.10 to 4.17.14
#10958 Remove the intentState.receivingOperatorList boolean since it's redundant
#10850 Scale stroking line width when using a tiling pattern.
#10851 Apply bounding box before using shading patterns.
#10950 Fixed testing webserver to handle paths correctly on Windows
#10966 Add timestamp to the page rendered event.
#10968 Remove useless wrapReason calls in the MessageHandler class
#10970 Simplify, and inline, the finalize function in the MessageHandler class
#10969 Add an API unit-test for the stopAtErrors option (PRs 8240 and 8922 follow-up)
#10974 Simplify the PDFDocument.fingerprint method slightly
#10820 Annotations - Added parsing of IRT, RT, State and StateModel
#10987 Bump js-yaml from 3.12.0 to 3.13.1
#10990 Refactor the onBeforeDraw/onAfterDraw functionality used in BaseViewer and PDFPageView
#10979 [Firefox] Re-factor the 'zoomreset' message handling in the viewer (PR 10652 follow-up)
#10986 Attempt to significantly reduce the number of ChunkedStream.{ensureByte, ensureRange} calls by inlining the this.progressiveDataLength checks at the call-sites
#10993 Add the docBaseUrl API parameter to AppOptions in the viewer
#10995 Remove an unnecessary PDFDocumentProperties.setFileSize call, relevant for the Firefox built-in viewer, and use the "normal" code-path in PDFViewerApplication.open instead
#11001 Inline the isCmd check in the Parser.shift method
#10996 Avoid creating a PDFFindBar instance, in the Firefox built-in viewer, when not actually necessary
#11003 Ensure that setting the zoomDisabledTimeout isn't skipped, regardless of the supported zoom keys, when handling mouse wheel events (PR 7097 follow-up)
#11012 Reduce the number of function calls in EvaluatorPreprocessor.read
#11019 Decode URL encoded filenames from content disposition headers
#11020 Add a work-around, in glyphlist.js, for bad PDF generators which use a non-standard /f_f string in the Encoding dictionary when referring to the ff ligature (issue 11016)
#11033 Ensure that the loading indicator, in the pageNumber input, is hidden when the viewer is closed
#11029 [api-minor] Update telemetry to use 'categorical' histograms.
#11034 Ensure that ReadableStreams are cancelled with actual Errors
#11038 [api-minor] Fix completely broken getStats method by returning stats in Objects, rather than in Arrays (PR 11029 follow-up)
#11013 [api-minor] Implement quadpoints for annotations in the core layer
#11048 Use more compact keys in PDFLinkService._pagesRefCache
#11049 Add page rendered timestamp to telemetry.
#11047 Support corrupt PDF files with invalid/non-existent Group /CS entries (issue 11045)
#11051 Actually compare the cropBox and mediaBox correctly in the Page.view getter
#11057 Handle some corrupt/truncated JPEG images that are missing the EOI (End of Image) marker (issue 11052)
#11059 Fallback gracefully when encountering corrupt PDF files with empty /MediaBox and /CropBox entries
#11062 Miscellaneous small clean-up of code in the web/ folder
#11064 Convert the src/shared/util.js file to ES6 syntax
#11070 Inline the isString check in the Parser.getObj method
#11073 Move polyfill for codePointAt to String prototype.
#11076 Replace the XRef.cache Array with a Map instead
#11081 added in information about pdfjs/webpack
#11079 [TextLayer] Only cache the current textDiv style when enhanceTextSelection is enabled and use template strings in expandTextDivs
#11087 Add a way to disable external links.
#11086 [TextLayer] Only cache the originalTransform when enhanceTextSelection is enabled
#11091 [TextLayer] Only handle positive padding values in expandTextDivs
#11090 [TextLayer] Use an Array to build the total transform, rather than concatenating Strings, in expandTextDivs
#11093 Shorthand afterPrint signature in app.js
#11092 [TextLayer] Use an Array to build the total padding, rather than concatenating Strings, in expandTextDivs
#11069 Use streams for OperatorList chunking (issue 10023)
#11096 Update translations/packages and upgrade to eslint version 6
#11095 Include a reduced, non-linked PDF file for the attachments API unit test
#11097 [TextLayer] Only measure the width of the text, in _layoutText, for multi-char text divs
#11102 Bump mixin-deep from 1.3.1 to 1.3.2
#11104 [TextLayer] Avoid unnecessary font updates in _layoutText and remove setAttribute usage in appendText
#11107 Various MessageHandler improvements when using Streams
#11110 Remove support for the scope parameter in the MessageHandler.on method
#11111 Inline the resolveCall helper function at its call-sites in MessageHandler
#11112 Remove the API/Worker version warning message in TESTING mode
#11108 Use more ES6 syntax in the annotation code
#11115 Ensure that Errors are handled correctly when using postMessage with Streams in MessageHandler
#11123 [api-minor] Remove the postMessageTransfers parameter, and thus the ability to manually disable transferring of data, from the API
#11118 Transfer, rather than copy, CMap data to the worker-thread
#11127 Update the eslint-plugin-mozilla to the latest version (PR 10905 follow-up)
#11129 Prevent "offsetParent is not set -- cannot scroll" errors when the viewer loads in e.g. a hidden <iframe>
#11133 Enable the no-async-promise-executor ESLint rule
#11130 Don't enqueue unused properties when sending 'GetOperatorList' data from the worker-thread (PR 11069 follow-up)
#11138 [CRX] Ignore auto-generated from Chrome
#11134 Ensure that addLinkAttributes is always called with a valid url parameter
#11142 Stop dispatching a "localized" event from the webL10n library, since it's unused and may clash with the default viewer
#11106 Abort, with a small delay, getOperatorList on the worker-thread when rendering is cancelled (PR 11069 follow-up)
#11145 Update translations and packages
#11155 Miscellaneous (small) clean-up of the MessageHandler code
#11159 For Type1 fonts, replace missing font dictionary /Widths entries with ones from the font data (issue 11150)
#11158 Avoid floating point inaccuracy in gradient color stops
#11163 Fix the link in the doc website
#11146 Replace our URL polyfill with the one from core-js
#11165 Enable a couple of return related ESLint rules
#11168 Remove unmaintained localizations and update translations and packages
#11171 Fix the inconsistent return types for Dict.{get, getAsync}
#11173 Replace the bundled ReadableStream polyfill with the web-streams-polyfill npm package (issue 11157)
#11169 Reduce the number of function calls in the Dict class
#11185 Convert the various ...Exceptions to proper classes, to reduce code duplication
#11182 Forbid sending of Dicts and Streams, with postMessage, when workers are disabled
#11187 Convert the various image decoder ...Errors to classes extending BaseException (PR 11185 follow-up)

Assets 3
  • v2.2.228
  • d7afb74
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.2.228
  • d7afb74
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Jul 10, 2019 · 1505 commits to master since this release

#10557 Bump versions in pdfjs.config
#10556 [api-minor] Expose the existence of a Collection dictionary via the getMetadata API method (issue 10555)
#10554 Simplify the updatetextlayermatches event handling in TextLayerBuilder
#10548 Generate the default_preferences.json file from AppOptions
#10558 Re-factor the PDFDataRangeTransport unit-tests and enable them in Node.js/Travis
#10560 Update translations and packages
#10579 Re-factor the PDFSidebar constructor to simplify its call-site (PR 10123 follow-up)
#10578 Try to temporarily hack around the __non_webpack_require__ bug, and update Webpack to the latest stable version (issue 10177)
#10577 Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file
#10582 Use Promise.prototype.finally in the PDFRenderingQueue.renderView method
#10589 Run the custom_spec unit-tests in Node.js/Travis (PR 10537 follow-up)
#10585 Load built-in CMap files using the Fetch API when possible
#10573 Avoid truncating/breaking some Type3 glyphs in compileType3Glyph (bug 1245391, issue 10568)
#10599 Update Webpack to the latest stable version (4.29.6)
#10597 Ensure that the temporary canvas created in CanvasGraphics.isFontSubpixelAAEnabled will be cleared
#10595 Zero the width/height of the temporary canvas used during JpegDecode (issue 10594)
#10591 Add unique glyph names for CFF fonts.
#10601 Zero the width/height of the temporary canvas used during TextLayer rendering
#10604 Put the string name of the glyph in the charset array.
#10606 Update translations and packages
#10590 Fix missing moveTos in SVG paths
#10608 Reduce usage of Date.now() in src/core/worker.js
#10610 Add type validation to the default_preferences generation (PR 10548 follow-up)
#10605 Convert let to const if possible in, and improve unit test coverage for, src/display/display_utils.js
#10615 Handle corrupt ASCII85Decode inline images with whitespace "inside" of the EOD marker (issue 10614)
#10621 Don't scale SVG stroke width by text matrix
#10634 Move NativeImageDecoder into a separate file, and convert it to a class
#10633 Convert MurmurHash3_64 to an ES6 class
#10628 Try to improve text-selection for Type3 fonts that utilize a non-default /FontMatrix (bug 1513120)
#10636 Small clean-up of the PDFDocumentProxy.destroy method and related code
#10647 Actually transfer eligible ImageMask data, rather than always copying it
#10644 Ensure that blob: URLs will be revoked when pages are cleaned-up/destroyed (JPEG memory usage)
#10646 Implement linear-gradient, radial-gradient and dummy-pattern in SVGGraphics.
#10635 Convert src/core/parser.js to ES6 syntax and write more unit tests for the lexer and the parser
#10657 Update test case description
#10652 Prepare the MOZCENTRAL viewer for receiving zoom events from the browser UI (bug 786674, bug 1177385)
#10668 Remove the Firefox-specific 'read with streaming' unit-test
#10681 fix: electron enviroment detection
#10685 Take the FirstChar/LastChar properties into account when computing the hash in PartialEvaluator.preEvaluateFont (issue 10665)
#10683 Use CMap in Type0 fonts when CFF is not a CID font
#10692 Add Mozilla Code of Conduct
#10698 Update translations/packages and include the code of conduct for pdfjs-dist too
#10706 Add missing hasChildNodes polyfill to domstubs.js (PR 10022 follow-up)
#10675 [Firefox regression] Fix disableRange=true bug in PDFDataTransportStream
#10713 Remove src/core/annotation.js from the gulp jsdoc build target
#10678 Remove moz-chunked-arraybuffer support, and related code, from src/display/network.js
#10709 [api-minor] Add basic support for PageLayout in the API and the viewer
#10714 [Firefox] Ensure that loading progress is reported, and the loadingBar updated, when disableRange=true is set
#10674 Convert src/display/svg.js to ES6 syntax and implement setRenderingIntent and setFlatness for the SVG backend
#10715 Add test for fetch_stream
#10725 Attempt to clarify the l10n section of CONTRIBUTING.md
#10723 [api-minor] Implement caret annotations
#10728 Annotations - _preparePopup method replaced with MarkupAnnotation
#10696 Update ChunkedStream.makeSubStream to actually check if (some) data exists when the length parameter is undefined
#10694 Avoid dispatching range requests to fetch PDF data that's already loaded with streaming (PR 10675 follow-up)
#10733 Update translations and packages
#10735 [api-minor] Implement free text annotations
#10742 [Firefox] Avoid displaying the indeterminate loadingBar when disableStream=true is set (PR 10714 follow-up)
#10746 Add links to PDF.js homepage and API reference in README.md
#10727 Support (rare) Type3 fonts which contains image resources (issue 10717)
#10754 Add a getDocId method to the idFactory, in Page instances, to avoid passing around PDFManager instances unnecessarily (PR 7941 follow-up)
#10738 [api-minor] Add support for ViewerPreferences in the API (issue 10736)
#10765 Add passive: false to the wheel event listener, to work-around broken default behaviour in Chrome 73 and above (issue 10761)
#10784 Ensure that the OperatorList constructor actually initializes a NullOptimizer when intended (PR 9089 follow-up)
#10756 Attempt to handle corrupt PDF documents that contains path operators inside of text object (issue 10542)
#10789 Change PartialEvaluator.handleColorN to throw when no valid pattern is found
#10771 [api-minor] Implement creation/modification date for annotations
#10795 Update the canvas npm package to fix Travis CI builds (issue 10790)
#10805 Enable the consistent-return ESLint rule
#10794 Fix glyph at index zero in CIDFontType2 that has a CIDToGIDMap stream
#10826 Remove unused ref property from the parameters object used when creating annotations in AnnotationFactory._create
#10827 Convert the (remaining) network streams to ES6 classes
#10854 make print resolution configurable via AppOptions
#10833 [api-minor] Implement contents and creation date for the correct annotation types
#10859 Update translations and packages
#10862 Add caching to reduce the number of Ref objects
#10863 Ensure that the Cmd/Name/Ref caches are cleared when running other cleanup code
#10869 Restore referrer preserving functionality in Chrome 72+
#10867 Don't clip if path is undefined in SVG back-end
#10872 Re-use, rather than re-creating, some Arrays when resetting them in src/display/api.js
#10873 Ensure that the Cmd/Name/Ref caches are cleared when terminating the worker (PR 10863 follow-up)
#10877 Ignore Annotations with too large border widths, to prevent the annotationLayer from rendering it over the surrounding document (bug 1552113)
#10879 [api-minor] Attempt to reduce memory usage during printing, by always running cleanup once rendering has finished
#10890 Add support for outline items, in the default viewer, which default to collapsed when the outline is built
#10897 Remove a superfluous linkService.isPageVisible check from PDFFindController (PR 10217 follow-up)
#10898 Allow experimenting with the printResolution AppOption when printing with the built-in Firefox version
#10905 Pin the version of eslint-plugin-mozilla to prevent failures on Travis (issue 10901)
#10903 Move PDFWorkerStream and related code to its own file
#10926 Change the signature of the Parser constructor to take a parameter object
#10925 Enable the eslint-plugin-no-unsanitized ESLint plugin to disallow unsafe usage of e.g. innerHTML
#10902 Implement tiling patterns for the SVG back-end
#10936 Update translations and packages
#10938 Reduce the number of isCmd calls slightly in the XRef class
#10937 Restore the header size limit of 80 KB
#10947 Make the find helper function, in src/core/document.js, more efficient by using peekBytes rather reading the stream one byte at a time
#10949 Delay initialization of searching, in the viewer, until the first page has rendered

Assets 3
  • v2.1.266
  • 81f5835
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.1.266
  • 81f5835
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Feb 16, 2019 · 1733 commits to master since this release

Changes since v2.0.943:

#10187 Bump versions in pdfjs.config
#10188 Hide the beta version button on the website if there is only a stable version
#10162 Normalize BBox of form XObjects in SVG back-end
#10185 Reduce the number of redundant text normalization operations in PDFFindController
#10182 Small clean-up of the search related methods in TextLayerBuilder
#10184 Ensure that matches are not scrolled into after the findbar has been closed (PR 10100 follow-up)
#10196 [Regression] Ensure that "Highlight All" is propagated to all pages for 'findagain' events where the findbar was previously closed (PR 10100 follow-up)
#10190 Add a helper method for _getVisiblePages, in BaseViewer, for the case where only a single page is displayed in the viewer
#10201 Reduce the number of redundant updatetextlayermatches events dispatched when calculating matches in PDFFindController
#10203 Change canvasInRendering to a WeakSet instead of a WeakMap
#10096 Remove the attachDOMEventsToEventBus functionality, since EventBus instances are able to re-dispatch events to the DOM (PR 10019, bug 1492849 follow-up)
#10202 Attempt to clean-up/restore pending rendering operations on RenderTask.cancel (issue 10200)
#10217 For repeated 'findagain' operations, attempt to reset the search position if the user has e.g. scrolled in the document (issue 4141)
#10219 Convert src/core/ps_parser.js to use ES6 classes
#10228 Don't detect nw.js as node.js
#10233 [api-minor] Convert PDFObjects, in src/display/api.js, to an ES6 class
#10238 Move the interface definitions out of src/core/worker.js and into their own file
#10245 Update BaseViewer.scrollPageIntoView to always validate the pageNumber parameter
#10223 When the search query changes, regardless of the search command, always re-calculate matches (bug 1030622)
#10220 Only scroll search results into view as a result of an actual find operation, and not when the user scrolls/zooms/rotates the document (bug 1237076, issue 6746)
#10231 Stop scrolling the document when "Highlight All" is toggled in the findbar (issue 5561)
#10244 Fix webpack example
#10255 Avoid unnecessary PDFFindController.scrollMatchIntoView calls in TextLayerBuilder._renderMatches when highlightAll is set (PR 10201 follow-up)
#10256 Attempt to tweak the error messages, in BaseViewer, for invalid pageNumbers/pageLabels (bug 1505824)
#10264 Update translations and packages
#10197 Use span instead of div in the text layer
#10246 Convert the remaining code in src/display/api.js to use ES6 classes
#10274 Fallback to an exhaustive search, in corrupt PDF files, for NameTrees/NumberTrees that are not correctly ordered (issue 10272)
#10294 Add ESLint plugin import to be warned against invalid paths
#10292 Replace uglify-es with Terser
#10293 Upgrade to Babel 7
#10275 Fix NameOrNumberTree.get to actually perform a binary search to find the requested key
#10299 Update packages and translations
#10300 Include forgotten changes after Wintersmith update
#10318 In GENERIC builds, dispatch a "webviewerloaded" event (from the webViewerLoad function) before initializing the viewer
#10322 Remove unuseful variable
#10323 Test the code as-is, in Node.js/Travis, rather than its Babel translated version
#10340 Tweak the PDFHistory._tryPushCurrentPosition method to work better with the different Scroll/Spread viewer modes
#10330 Handle line width of zero in SVG
#10304 Add protection against directory traversal attacks
#10295 Update eslint-plugin-mozilla to ^1.0.1
#10337 Turn on ESLint in examples
#10351 Attempt to ignore mouse wheel zooming during tab switches (bug 1503412)
#10350 Ignore the fieldValue for Signature annotations, since they're currently unsupported (issue 10374)
#10354 Disable source-map generation when running tests
#10356 Use high DPI icons on semi-high DPI screens.
#10358 Add keyboard shortcut to toggle sidebar (F4, same as Adobe Reader).
#10266 Upgrade to Gulp 4
#10363 Fix small visual quirk in thumbnail viewer
#10346 [api-minor] Add support, in getMetadata, for custom information dictionary entries (issue 5970, issue 10344)
#10369 [api-minor] Change the getViewport method, on PDFPageProxy, to take a parameter object rather than a bunch of (randomly) ordered parameters
#10375 Update translations and packages
#10334 [api-minor] Add support for OpenAction destinations (issue 10332)
#10378 Update remaining examples, and docs, to utilize current API functionality (issue 10377)
#10376 Convert src/core/chunked_stream.js to ES6 syntax
#10392 Check that the first page can be successfully loaded, to try and ascertain the validity of the XRef table (issue 7496, issue 10326)
#10394 Optimize the Ref class in src/core/primitives.js
#10393 Convert src/core/document.js to ES6 syntax
#10396 Optimizations to avoid intermediate string creation
#10397 Ensure that AnnotationBorderStyle.setWidth is able to handle the input being a Name, to correctly deal with corrupt PDF documents (issue 10385)
#10398 Prevent errors in various methods in SimpleDOMNode when the childNodes property is not defined (issue 10395)
#10277 Repair CFF fonts if stem hints are in wrong order
#10404 Remove the for ... of loop from the PDFDocument.fingerprint getter (issue 10401)
#10399 migrate to canvas 2.x api
#10411 Adjust how AnnotationBorderStyle.setWidth handles the input being a Name (issue 10385)
#10408 Prevent errors, because of incorrect scope, in the XMLParserBase._resolveEntities method (issue 10407)
#10412 Prevent errors, in SimpleXMLParser.onEndElement, when the stack has already been completely parsed (issue 10410)
#10417 Fix reading number of HTMX metrics.
#10420 Update translations/packages and improve documentation
#10421 Switch to HTTPS for the license link on the website
#10422 Convert more files in src/core to ES6 syntax
#10424 Accept non-matching document fingerprints, in PDFHistory, when the viewer is reloaded (issue 6847)
#10423 Add support for updating the document hash, off by default, when the browser history is updated (issue 5753)
#10441 Handle more cases of corrupt PDF files with missing 'endobj' operators, where the "obj" string is immediately followed by the dictionary (PR 9288 follow-up)
#10436 Avoid truncating inline images, where the data and the "EI" marker is glued together (issue 10388)
#10425 Write more unit tests for the find controller
#10444 Remove left-over console log from the find controller unit tests
#10447 Handle malformed URIs as bad requests in the development webserver
#10443 Prevent TypeError: views[index] is undefined being throw in getVisibleElements when the viewer, or all pages, are hidden
#10462 Tweak the DOMTokenList.toggle polyfill (issue 10460)
#10461 Avoid setting incorrect document URLs, in IE 11, when the browser history is updated (PR 10423 follow-up)
#10457 When parsing Metadata, attempt to remove "junk" before the first tag (PR 10398 follow-up)
#10466 Move/refactor the code in the BaseViewer.update method to reduce duplication in the extending classes
#10467 Convert some usage of indexOf to startsWith/includes where applicable
#10471 Implement a unit test for metadata parsing to ensure that it's not vulnerable to the billion laughs attack
#10470 Try to, completely, avoid loading the ReadableStream polyfill in MOZCENTRAL builds
#10473 Add an Array.from polyfill, using core-js, and remove some compatibility hacks from the src/display/content_disposition.js file
#10474 Update translations and packages
#10480 [Regression] Fix the FontInspector in the PDFBug debugging tools
#10483 Update the mobile-viewer example to use the new PDFHistory.initialize format (PR 10423 follow-up)
#10484 Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up)
#10492 Ensure that XRef.indexObjects can handle object numbers with zero-padding (issue 10491)
#10482 Implement Decode entry in Indexed images
#10494 Reduce unnecessary duplication of the isDefaultDecode methods on ColorSpace instances
#10489 Move more code/methods into BaseViewer, and simplify the PDFSinglePageViewer._scrollIntoView method slightly
#10501 In getVisibleElements, check firstVisibleElementInd rather than numViews before backtracking (PR 10443 follow-up)
#10499 Attempt to clean-up/restore pending rendering operations when errors occurs while a RenderTask runs (PR 10202 follow-up)
#10504 Enable the no-useless-catch ESLint rule
#10508 Do the final text scaling correctly in flushTextContentItem (issue 8276)
#10515 Add a settled property, tracking the fulfilled/rejected stated of the Promise, to createPromiseCapability
#10517 [api-minor] Remove the document.currentScript polyfill
#10502 Modify a number of the viewer preferences, whose current default value is 0, such that they behave as expected with the view history
#10525 Convert more code to use classList.toggle with the force parameter
#10527 Add a polyfill for classList.{add, remove} with more than one parameter
#10532 Bump base version and version prefix in pdfjs.config
#10533 Bump the version number in pdfjs.config
#10534 Try to hack-around the broken pdfjs-dist links, such that they will point to the main library releases (issue 10391)
#10530 Fix copying on supplementary plane characters
#10545 Undo the pdfjs.config version bumps
#10537 Improve unit test coverage
#10540 [Chrome extension] Add missing "type" entry for the viewOnLoad preference in the preferences_schema.json file (PR 10502 follow-up)
#10539 [api-minor] Fallback to the built-in font renderer when font loading fails

Assets 3
  • v2.0.943
  • dc98bf7
  • Compare
    Choose a tag to compare
    Search for a tag
  • v2.0.943
  • dc98bf7
  • Compare
    Choose a tag to compare
    Search for a tag

@timvandermeij timvandermeij released this Oct 27, 2018 · 1999 commits to master since this release

Changes since v1.10.100:

#9730 Ignore the rest of the image when encountering an EOI (End of Image) marker while parsing Scan data (issue 9679)
#9740 Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js
#9771 Remove the gulp extension build target
#9773 Fix multibyte decoding in content_disposition.js
#9769 Reduce the amount of errors logged, primarily in Node.js/Travis, when running the unit-tests
#9774 Use fs.unlinkSync instead of fs.unlink when removing files in the font tests
#9741 Build improvements
#9779 Remove dead code in the gh-pages-prepare task in the Gulpfile
#9777 Various PageViewport and MessageHandler cleanup
#9781 Miscellaneous API clean-up
#9792 Import translations
#9660 Support running the tests headlessly.
#9794 Implement drag-and-drop support in the viewer for local files
#9793 Remove Util.appendToArray and Util.prependToArray
#9689 Fixed critical unhandled promise that prevented error catching using API
#9796 Disable (drag-and-drop) file opening if Presentation Mode is active (PR 9794 follow-up)
#9801 Replace deprecated new Buffer(string, 'base64') constructor with Buffer.from(string, 'base64')
#9815 Remove the disableFullscreen hack for embedded IE 11 (issue 9585)
#9816 Fix regression causing the pages to be offset horizontally in Presentation Mode (PR 8993 follow-up)
#9595 Disable ftp support in Chrome 59+, add file chooser at file
#9819 Fix regression affecting the horizontal viewerContainer offset for small window widths (PR 9816 follow-up)
#9809 Allow FontFaceObject.getPathGenerator to ignore non-embedded fonts during rendering
#9802 Update ColorSpace and PDFImage to use Uint8ClampedArrays and remove manual clamping/rounding
#9821 Set the correct document title when opening a new file in the GENERIC default viewer
#9795 Replace Util.extendObj by Object.assign
#9827 Fix various corrupt PDF files (issue 9252, issue 9418)
#9830 Removed safari compatibility check (issue #9824)
#9835 Clean-up the PDFDocumentProxy.loadingParams method in the API, and the locale viewer option
#9832 Fix a number of regressions/inefficiencies introduced by adding Scroll/Spread modes to the viewer (PR 9208 follow-up)
#9839 Add unit-tests for PDFPageProxy.stats (PR 9245 follow-up)
#9729 Add a gulp image_decoders command to package the image decoders (i.e. jpg.js, jpx.js, jbig2.js) separately, and publish them in pdfjs-dist
#9841 Various (small) cleanup related to setting the initial document position on load
#9849 Replace the cloneObj helper function, in the viewer, with native Object.assign (PR 9795 follow-up)
#9838 Error, rather than warn, once a number of invalid path operators are encountered in EvaluatorPreprocessor.read (bug 1443140)
#9852 Proper Error Handling for Build Numbers of Downloaded Sources (Non-Git repositories).
#9853 Fix re-rendering, using the same canvas, when rendering was previously cancelled (PR 8519 follow-up)
#9859 Update translations and packages
#9860 Update the localization README to indicate that the translations are imported from the Nightly channel
#9858 Additional Scroll/Spread mode clean-up (PR 9832 follow-up)
#9861 Refactor PDFFindController to use the 'pagesinit' event, dispatched on the eventBus, to resolve the _firstPagePromise
#9866 Prevent the development viewer, started with gulp server, from breaking completely in Private Browsing mode
#9879 Correct the instructions in the README file for examples/mobile-viewer
#9880 Remove the jp-JP-mac locale
#9877 Hide the Scroll/Spread mode buttons if the viewer is a PDFSinglePageViewer instance (PR 9858 follow-up)
#9868 Stop exposing the URL polyfill in the global scope
#9837 Replace NotImplementedException with unreachable
#9881 Replace the remaining occurences of instanceof Array with Array.isArray()
#9887 Convert more code in the /src folder to use ES6 classes, such that Util.inherit can be removed
#9886 Prevent errors in sanitizeTTProgram, during parsing of CALL functions, when encountering invalid functions stack deltas (bug 1473809)
#9898 Change waitOnEventOrTimeout, in web/ui_utils.js, to return a regular Promise and remove the createPromiseCapability import
#9900 Prevent Metadata/XML parsing from breaking PDFDocumentProxy.getMetadata when no XML root document is found (issue 8884)
#9904 Modified Examples to work without systemjs
#9913 Provide custom messages for the no-restricted-globals ESLint rule, and refactor the .eslintrc files (PR 9868 follow-up)
#9917 Add a BasePreferences.getAll method and use it to fetch all Preferences at once in PDFViewerApplication._readPreferences; ensure that the externalLinkTarget option is correctly set when the viewer is embedded
#9924 fix(browser): zlib is not available in browser
#9933 README.md: suggest usage of https instead of git protocol
#9935 [Regression] Convert Catalog.builtInCMapCache into a Map, instead of an Object, to ensure that it's correctly reset (PR 8064 follow-up)
#9936 Validate the Preferences when fetching them from storage
#9925 Attempt to estimate the minimum required buffer length when initializing StreamsSequenceStream instances
#9931 Refactor getPage (in the worker), and attempt to use the Linearization dictionary to lookup the first Page
#9920 [api-minor] Add an IsLinearized property to the PDFDocument.documentInfo getter, to allow accessing the linearization status through the API (via PDFDocumentProxy.getMetadata)
#9897 Prefer the Width/Height of the image data, rather than the image dictionary, for JPEG 2000 images (issue 9650)
#9938 Ensure that Type0, i.e. composite, OpenType fonts with CFF tables are not treated as CFF fonts if their glyph mapping is non-default (issue 9915)
#9946 Removed Extraneous Matrix Check in CalRGB Conversion
#9948 Add (basic) unit-tests for the non-global URL constructor (PR 9868 follow-up)
#9954 Stop warning for non-Name /Filter entries in the PDFImage constructor (PR 9897 follow-up)
#9874 [api-minor] Include export value for checkboxes
#9956 Allow loaded progress of 0 in unit tests.
#9960 Fail when MD5 of test files fails on bots.
#9959 Utility script to add a reference test.
#9961 Parse the font file to determine the correct type/subtype, rather than relying on the (often incorrect) data in the font dictionary
#9958 Always fallback to system font on font failure.
#9965 Update translations and packages
#9964 Attempt to throw MissingPDFException when applicable in node_stream.js (issue 9791)
#9968 Tweak the MMType1 font detection in getFontFileType to improve font telemetry (PR 9961 follow-up)
#9822 [api-minor] Refactor the annotation code to be asynchronous
#9975 Re-factor destinations/getDestination to reduce unnecessary duplication, and reject non-string inputs
#9980 Ensure that Uint8ClampedArray is used for image data transfered by getTransfers (PR 9802 follow-up)
#9988 Remove the unused PDFDocument.mainXRefEntriesOffset method
#9989 Update translations and packages
#9987 [api-minor] Remove the obsolete createBlob helper function
#9991 Remove the deprecated ways, in BaseViewer, of setting the Scroll/Spread modes (PR 9858 follow-up)
#9977 Add support for async/await using Babel
#10000 Remove the unused defaultColor property on ColorSpace instances
#10008 Update translations/packages and fix duplicated function name in the Esprima fixtures
#9990 Convert the Catalog class, in src/core/obj.js, to ES6 syntax
#10007 Convert the code in src/core/colorspace.js to use ES6 classes
#10015 Adding chunkname to async loaded code
#10020 Ensure that the built PdfJsDefaultPreferences.jsm file won't be affected/touched during tree-wide ESLint rule changes in mozilla-central (PR 9571 follow-up)
#10022 Implement text rendering modes in SVG backend
#10010 Attempt to find truncated endstream commands, in the fallback code-path, in Parser.makeStream (issue 10004)
#10019 Add general support for re-dispatching events, on EventBus instances, to the DOM
#9986 Attempt to combine separate beginText/endText sequences in getTextContent (issue 9984)
#10032 Replace broken link for pr8808.pdf.link
#10031 Add a new parameter to JpegImage.getData to indicate the source of the image data (issue 9513)
#10033 [api-minor] Implement a permissions API
#10041 Revert "Attempt to combine separate beginText/endText sequences in getTextContent (issue 9984)"
#10049 Fix font-string variable name typo
#9340 Map all glyphs to the private use area and duplicate the first glyph.
#9995 Refactor code in the web/ folder to use async/await
#10053 Simplify the "spaced-comment" ESLint rule
#10034 Remove getSinglePixelWidth workaround
#10054 Update translations/packages and use HTTPS for links in README.md
#10052 Display the index of the currently active search result in the matches counter of the findbar (issue 6993, bug 1062025)
#10055 Translate the new find match count strings to Dutch
#10028 Add initial support for "Whole words" searching in the viewer
#10056 [Regression] Ensure that PDFFindBar.updateResultsCount doesn't throw when the viewer is closed, by providing proper default values
#10060 Ensure that PDFFindController._requestMatchesCount won't return broken data when searching starts (PR 10052 follow-up)
#10061 Implement unit tests for the isSameOrigin and createValidAbsoluteUrl utility functions and use the const keyword for constants in src/shared/util.js
#10063 Slightly improve the isSourcePDF parameter handling in JpegImage (PR 10031 follow-up)
#10070 Attempt to support plural forms in the matches counter of the findbar (issue 10067)
#10066 Refactor the find controller
#10071 Enable forwarding, in FirefoxCom, of the matchesCount to the browser findbar (bug 1062025)
#10078 Improve plural support for the matches counter
#10090 Ensure that all event properties are included, even if no (internal) listeners are registered, when re-dispatching events to the DOM (PR 10019 follow-up)
#10095 Update packages and translations
#10111 Replace String.prototype.substr() occurrences with String.prototype.substring()
#10114 Update {PDFLinkService, PDFDocumentProperties}.setDocument to make the "url" parameter optional
#10100 Clear all find highlights when the findbar is closed (issue 7468)
#10116 Update packages and translations
#10099 [api-major] Rework the find controller for unit testing
#9982 Use the Font Loading API in MOZCENTRAL builds, and GENERIC builds for Firefox version 63 and above (issue 9945, bug 1088663)
#10119 Attempt to simplify the fileattachmentannotation event dispatching
#10123 Attempt to simplify the PDFFindBar and PDFSidebar constructors
#10126 [Regression] Restore the ability to start searching before a document has loaded, and ignore searches for previously opened documents (PR 10099 follow-up)
#10128 Make PDFFindController less confusing to use, by allowing searching to start when setDocument is called
#10117 Add support of Ink annotation
#10136 Remove the unused mainContainer parameter from the Toolbar constructor
#10138 Ensure that Toolbar.setPageScale always sets the pageScaleValue property to a valid value
#10139 Ensure that the PDFDocumentLoadingTask is rejected when "setting up fake worker" failed (issue 10135)
#10133 Set returnValues.suggestedLength to Content-Length if integer
#10140 Combine the pdfjsFilePath and fallback workerSrc handling in src/display/api.js
#10143 Ensure that getMainThreadWorkerMessageHandler won't accidentally break getDocument (PR 10139 follow-up)
#10150 Add missing pagesCount getter to IPDFLinkService and SimpleLinkService
#10152 Add support for classList.toggle with the, optional, "force" parameter
#10155 Add Build Status Button
#10166 Bump version numbers for stable and beta releases
#10167 Export CMapCompressionType and PermissionFlag on the pdfjsLib object (issue 10148, PR 10033 follow-up)
#10161 Ensure that onProgress is always called when the entire PDF file has been loaded, regardless of how it was fetched (issue 10160)
#10168 Convert PDFDataRangeTransport to an ES6 class
#10176 Update translations and packages
#10179 Change splice to pop in annotation tests

Assets 3

@brendandahl brendandahl released this Jun 6, 2018

#9659 Remove createFromIR from PDFFunctionFactory; forgive invalid Dict values.
#9573 New XML parser
#9759 Fix webpack exclude path on windows.

Assets 3

@yurydelendik yurydelendik released this Oct 27, 2017

Changes:

#8778 Use Uint8ClampedArray, when returning data, and remove manual clamping in src/core/jpg.js (issue 4901)
#8780 Version 1.9.426
#8783 Use Uint8ClampedArray when returning image data in src/core/jbig2.js and src/core/jpg.js
#8785 SVG: Don't render missing glyphs
#8788 Attempt to delay disabling of the attachment view until FileAttachment annotations of the initial page has been parsed
#8792 Fix caching of small inline images in Parser.makeInlineImage (issue 8790)
#8794 Remove the migration code for old localStorage data in ViewHistory
#8557 pdf2svg.js: provides ReadableSVGStream class to serialize a SVG as a stream
#8781 __non_webpack_require__ -> require in SystemJS
#8491 JBIG2 halftone regions and pattern dictionaries
#8807 Remove handling of fallback arguments from PDFViewer.scrollPageIntoView
#8812 Moves global scope out of shared/util.
#8813 Use Array.isArray in the LoopbackPort.
#8810 Cache PdfJs's enabled setting for delayed init
#8800 Try to recover if we reach the end of the stream when searching for the EI marker of an inline image (issue 8798)
#8712 Adds node.js logic for networking tasks for PDF.js
#8822 Disable node libs in pdfjs-dist package.json
#8824 Prevent an infinite loop in XRef.readXRef by keeping track of already parsed tables (bug 1393476)
#8819 Remove any mention of compatibility.js from the "Getting Started" docs (issue 8818)
#8817 Set this.isCancelled in close method of streamSink.
#8820 Remove the ability to pass a scale parameter in the (optional) args object parameter of PDFViewerApplication.open(file, args)
#8821 Replace the test-case for issue 8798 with a reduced one (PR 8800 follow-up)
#8826 Enable the for-direction ESLint rule
#8825 Account for broken outlines/annotations, where the destination dictionary contains an invalid /Dest entry
#8796 Implement text rise for the SVG back-end
#8829 Attempt to improve the EI detection heuristics, for inline images, in streams containing NUL bytes (issue 8823)
#8831 Update the gulp minified command to use uglify-es
#8835 Ensure that PDFViewerApplication.error outputs proper messages in FIREFOX/MOZCENTRAL builds
#8768 Adds fetch stream logic for networking part of PDF.js
#8845 Fixes autofetch and firefox nightly fetch streams
#8828 Improve the annotation code by converting to ES6 syntax and removing duplicate code
#8848 Correctly set the credentials of a fetch request, when the withCredentials parameter was passed to getDocument
#8855 Add test for withCredentials option
#8847 Correct the default value for isRenderable in the AnnotationElement constructor, to fix breaking errors when rendering unsupported annotations
#8857 Avoid some redundant type checks in XRef.fetchUncompressed
#8859 Revert PDFPageView.pdfPage reset.
#8862 Replace the isInt helper function with the native Number.isInteger function
#8864 Replace the isArray helper function with the native Array.isArray function
#8775 Re-write PDFHistory from scratch
#8874 Fix the helloworld example by setting the PDFNetworkStream class (PR 8712 follow-up)
#8866 Correctly validate the response status for non-HTTP fetch requests (PR 8768 follow-up)
#8877 Provide checked styles for button widget annotations
#8885 Address a couple of edge-cases in the new PDFHistory implementation (PR 8775 follow-up)
#8889 Replace value === (value | 0) checks with Number.isInteger(value)
#8868 Store the rotation in the ViewHistory/PDFHistory (issue 5927)
#8865 Hide unsupported LinkAnnotations (issue 3897)
#8691 Implement support for square and circle annotations
#8892 Replace var with let in web/genericcom and web/genericl10n
#8891 ES6-ify the code in web/firefoxcom.js
#8893 Combine the common styles and overrides for the annotation layer reference tests
#8808 Fix color of image masks inside uncolored patterns
#8904 Provide a stub for setAttribute in order to use the SVG back-end with Node.js
#8900 Use the SimpleLinkService when running "annotations" reference tests
#8910 Fix #8888: Change behaviour of fetch to make it compatible with XHR.
#8913 For /Filter entries containing Names, ignore the /DecodeParms entry if it contains an Array (issue 8895)
#8909 Check isEvalSupported, and test that eval is actually supported, before attempting to use the PostScriptCompiler (issue 5573)
#8917 Implement support for stamp annotations
#8919 Ignore 'change' events that didn't originate in the viewer (issue 8915)
#8921 support tiff predictor for 16bit
#8901 CCITTFaxStream problem when EndOfBlock is false
#8938 Use font's default width even when 0. (bug 1392647)
#8912 [api-minor] Replace DOMParser with SimpleXMLParser
#8928 Fix #8907: Decode URL to get correct path in node_stream.
#8949 Remove the instanceof AlternateCS check in ColorSpace.parse since it's dead code
#8932 JBIG2 symbol offsets
#8950 Implement support for polyline and polygon annotations
#8724 Implement a PDFSinglePageViewer class (issue 8188)
#8955 Overwrite maxSizeOfInstructions in maxp with computed value.
#8959 Ensure that the same exact version of PDF.js is used in both the API and the Worker
#8962 Check that this.baseUrl is defined before attempting to fetch any data in DOMCMapReaderFactory/NodeCMapReaderFactory
#8968 Split the existing PDFFunction in two classes, a private PDFFunction and a public PDFFunctionFactory, and utilize the latter in PDFDocument to allow various code to access the methods of PDFFunction
#8976 Simplify the disabling of Node polyfills, in gulpfile.js, since we're now using Webpack 3.x
#8971 Closes all promises/streams when handler is destroyed.
#8979 Transform Web Archive URLs to avoid downloading an HTML page instead of the PDF file
#8977 Update all packages to the most recent version
#8981 Update translations
#8983 Remove unused helper code
#8980 Add CDN links
#8990 Added component example for single page viewer
#8994 Fix a regression that (effectively) makes PDFHistory.forward a no-op
#9002 Revert "Closes all promises/streams when handler is destroyed."
#9001 Prevent the annotationLayer from, in some cases, becoming duplicated on the first page when the document loads
#8922 Allow getOperatorList/getTextContent to skip errors when parsing broken XObjects (issue 8702, issue 8704)
#9008 Mispelled isEvalSupported property at FontFaceObject() creation.
#9009 Only warn about unsupported JavaScript, in the viewer, when non-empty actions exist (issue 5767)
#9013 Fix a PDFHistory regression with document hashes of the nameddest=... form
#9027 Replace our WeakMap polyfill with the one from core-js
#9029 Enable the --report-unused-disable-directives ESLint command line option
#9031 Remove all warning/fallback code for obsolete method signatures in web/ files
#9040 Remove the enableHandToolOnLoad preference migration code in web/pdf_cursor_tools.js
JavaScript exists
#9044 Use charstring as plain text when lengthIV is -1.
#9032 Simplify the check, and remove the warning, for the nativeImageDecoderSupport API parameter
#9052 Attempt to clarify the meaning of "extension" in the ISSUE_TEMPLATE
#9054 Replace our Promise polyfill with the one from core-js
#9055 Replace Number polyfills with the ones from core-js
#9058 Replace a few occurences of var with let in already ES6 converted web/ files
#9057 Use let/const instead of var in the printing code
#9061 Adds ECCN response statement
#8986 Version 1.10
#9045 Sanitize name index in compile phase of CFF.
#9046 Extract the actual decoding in CCITTFaxStream into a new CCITTFaxDecoder "class", which the new CCITTFaxStream depends on
#9072 Use stringToBytes in more places

Assets 3

@yurydelendik yurydelendik released this Aug 14, 2017 · 3130 commits to master since this release

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 web application
#8535 Reset pageRotation and downloadComplete in PDFViewerApplication.close
#8539 Remove a redundant PDFViewer.currentScale call from PDFViewerApplication.load
#8536 Refactor ObjectLoader to use Dicts correctly, rather than abusing their internal properties
#8543 Add getAttributeNS to domstubs for SVG example
#8544 compatibility.js: Rename parameters in JURL
#8537 Convert the toolbar to ES6 syntax
#8540 Reduce memory requirements of pdf2svg.js example to avoid OOM
#8552 Ensure canvas is really hidden when used with pdfjs-dist.
#8556 Stop tracking the rotation in PDFViewerApplication and directly use PDFViewer.pagesRotation instead
#8542 Move svg:clipPath generation from clip to endPath
#8561 Don't use a hidden canvas when constructing the zoomLayer in PDFPageView.update
#8567 Fix error when using custom CMapReaderFactory
#8488 Streams get text content
#8507 Only special-case OpenType fonts with CFF data if it's both a composite (i.e. Type0) font and also has a non-default CID to GID map (issue 8480)
#8571 Mention in the "Getting the Code" section of README.md that an ES6 compatible browser is required when using the default viewer with gulp server
#8564 SVG: implement fill and stroke opacity
#8576 Remove the selectScaleOption helper function, in Toolbar._updateUIState, and simply inline its code instead
#8574 SVG: move setting the stroke properties to the stroke method
#8578 ES6-ify the code in web/ui_utils.js
#8589 Fix missing notdef in expert encoding.
#8582 Convert the text layer builder to ES6 syntax
#8583 ES6-ify the code in web/app.js and web/viewer.js
#8585 Check that the MessageHandler isn't already terminated in the onFailure handler in src/core/worker.js (issue 8584)
#8592 Only mask char codes of (3, 0) cmap tables in the range of 0xF000 to 0…
#8594 Change var to let, and use object destructuring, in a couple of previously class converted web/*.js files
#8580 Fix how we detect and handle missing glyph data.
#8596 Fixes wrong structure of fullReader.read() result.
#8615 Fix a stupid spelling error in the ASCII85Decode name in Parser.makeInlineImage (issue 8613)
#8555 Don't allow setting various properties, such as currentPageNumber/currentScale/currentScaleValue/pagesRotation, before {PDFViewer, PDFThumbnailViewer}.setDocument has been called
#8621 Bump minimum eslint version to 3.19.0
#8581 Removes error()
#8630 Remove pdfjsdev_webpack, use webpack options
#8643 Add Number.isNaN and Number.isInteger polyfills in compatibility.js, since the Streams polyfill relies on them
#8646 Fixes pdf.js library source detection.
#8640 Check for undefined
#8609 Ensure that PDFFindBar._adjustWidth is called in all situations where the width of the findbar might have changed
#8634 Update inconsistent names
#8618 Remove the scale-not-initialized hack from webViewerResize (in app.js)
#8641 Update ESLint (and eslint-plugin-mozilla) to the latest version
#8620 Improve compression of PNG images embedded in generated SVG files
#8649 Convert PDFLinkService to an ES6 class
#8651 Fix display_svg_spec tests.
#8636 Convert PDFViewer to an ES6 class
#8653 Add UI for the cursorToolOnLoad pref in the Chrome extension + migration logic
#8678 Fix a typo, in the Catalog.numPages getter, than prevents shadowing from working correctly
#8638 In src/core/jpg.js, ensure that the Adobe JPEG marker always takes precedence, even when the color transform code is zero
#8684 Remove most assert() calls (issue 8506)
#8673 [api-minor] Add support for PageMode in the API and viewer (issue 8657)
#8689 Update README.md
#8692 Add a reduced test-case for issue 7696
#8696 Adds ready capability rejection logic for stream sink.
#8666 Fix TypeError that occurs in colorspace.js on accidentally passing an 'Array' instead of 'TypedArray'
#8698 Add a fallback for non-embedded SegoeUISymbol font (issue 8697)
#8617 Adds Streams API support for networking task of PDF.js project.
#8715 Use streams-lib as polyfill
#8611 Add unit-tests for colorspace.js
#8717 Move the XRefMock in the unit tests to a central location
#8718 Ensure that the loadingBar isn't displayed again when the entire file has already been fetched
#8722 Fix the helloworld example by importing the network.js file (PR 8617 follow-up)
#8721 Reduces the amount of data send via GetDocRequest.
#8627 Fallback on font widths if CFF data is broken
#8681 Fix several issues with glyph id mappings (issue 8668, bug 1383504)
#8744 Checks Edge support for streams.
#8738 Delete workerPort to PDFWorker cache after PDFWorker destroy
#8745 Properly cancel streams and guard at getTextContent.
#8747 Fix two cmap related issues.
#8746 More robust getPage() error handling.
#8752 ES6-ify the code in web/dom_events.js
#8756 Remove leftover args[0].code checks from the OPS.paintXObject cases in evaluator.js
#8761 Fallback to plain object for globalScope.
#8762 Replace the coded property with isType3Font when building the font properties object in PartialEvaluator.translateFont
#8764 Convert DownloadManager to an ES6 class
#8749 Version 1.9

Assets 3
You can’t perform that action at this time.