195 Commits (ac9802809c3ab11bbeb70472d5d8cf18b897616a)

Author SHA1 Message Date
ghetolay 7f79e12383 Fix error when using custom CMapReaderFactory and worker 8 years ago
Mukul Mishra 0c13d0ff46 Adds Streams API in getTextContent to stream data. 8 years ago
Yury Delendik 631e6bebff Fixes WeakMap polyfill (and improves PDFWorker port check). 8 years ago
Yury Delendik 24f14d44cb Preventing from using the same canvas for multiple render() 8 years ago
Yury Delendik 69c804a0f4 Fixes duplicate creation of PDFWorker for the same port. 8 years ago
Jonas Jenwald f20d2cd2ae 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 8 years ago
chris.greening cfc2f36f5c Adds additional parameter so background color of canvas can be set 8 years ago
Jonas Jenwald bbe8c3d8ed Enable running a subset of the API unit-tests on Travis 8 years ago
巴里切罗 8d5d97264e fix(svg) adjust strategy for decoding JPEG images 8 years ago
Jonas Jenwald 6c81b8e6dd Replace unnecessary `bind(this)` and `var self = this` statements with arrow functions in remaining `src/` files 8 years ago
Tobias Schneider a80c405941 Rename FakeWorkerPort to LoopbackPort and export it 8 years ago
Jonas Jenwald 07b5574006 Enable the `object-shorthand` ESLint rule in `src/display` 8 years ago
Vladimir Bloshchitsyn 319ea0f350 Allow use versions for pdf.js script (i.e. - pdf.js?2412313) 8 years ago
Jonas Jenwald 52e3de3c0a Convert the files in the `/src/display` folder to ES6 modules 8 years ago
Jonas Jenwald a39d636eb8 [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) 8 years ago
TCASAS 010d38a8c0 Fix worker resolution on using minified version 8 years ago
Jonas Jenwald d37d271afa [api-minor] Reject the `RenderTask` with an actual `Error`, instead of just a `string`, when rendering is cancelled 8 years ago
Jonas Jenwald 6d672c4ba6 [api-minor] Add a `pdfjsNext` parameter, and `PDFJS_NEXT` build flag, to allow backwards incompatible API changes 8 years ago
Yury Delendik 51767d63fe Init PDFWorker via MesssagePort. 8 years ago
Jonas Jenwald 769c1450b7 [api-minor] Refactor fetching of built-in CMaps to utilize a factory on the `display` side instead, to allow users of the API to provide a custom CMap loading factory (e.g. for use with Node.js) 8 years ago
Yury Delendik 7d9941d870 Fixes pdf.combined.js for webpack. 8 years ago
Yury Delendik eb4c88cd44 Replacing custom bundling with webpack2. 8 years ago
Jonas Jenwald 9c34d0aa8c [api-minor] Add a `getDocument` parameter that allows disabling of the `NativeImageDecoder` (e.g. for use with Node.js) 8 years ago
Mukul Mishra 32817633c9 Fix #7798: Refactor scratch canvas usage. 8 years ago
Jonas Jenwald 52e0f51917 Enable the `no-unused-vars` ESLint rule 8 years ago
Jonas Jenwald 82ea7e6e6e Enable the `no-unsafe-finally`/`no-octal`/`no-useless-call` ESLint rules 8 years ago
Jonas Jenwald 4046d67fde Enable the `no-else-return` ESLint rule 8 years ago
Jonas Jenwald 27513cd23b [api-minor] Ensure that the `getDocument` Promise is rejected if the `loadingTask` is destroyed, or an `Error` is thrown, inside of the `onPassword` callback (issue 7806) 8 years ago
Jonas Jenwald 2f3805efbc Switch to using ESLint, instead of JSHint, for linting 8 years ago
Jonas Jenwald 3820946301 Fix (most) errors reported by the `no-multi-spaces` ESLint rule 8 years ago
Sean Burke f76cd2ce43 Expose the optional UserUnit entry as a page property 9 years ago
Jonas Jenwald d284cfd5eb [api-minor] Add support for relative URLs, in both annotations and the outline, by adding a `docBaseUrl` parameter to `PDFJS.getDocument` (bug 766086) 9 years ago
Jonas Jenwald 2ce9da9b7a Fix a couple of JSDoc `@typedef`s to use `@property` (instead of `@param`) to fix some missing documentation when running `gulp jsdoc` 9 years ago
Yury Delendik 0576c9c6c6 Replaces all preprocessor directives with PDFJSDev calls. 9 years ago
Tim van der Meij dbea302a6e Text widget annotations: do not render on canvas as well 9 years ago
Yury Delendik 160b176109 Adding "proper" message port for fake worker. 9 years ago
Jonas Jenwald 37998076c9 In `display/api.js` ensure that we always reject with an `Error` in `JpegDecode`, and adjust a couple of other rejection sites as well 9 years ago
Jonas Jenwald f297e4d17c [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that controls whether `PartialEvaluator_getTextContent` will attempt to combine same line text items 9 years ago
Jonas Jenwald 01ab15a6f1 [api-minor] Let `Catalog_getPageIndex` check that the `Ref` actually points to a /Page dictionary 9 years ago
Yury Delendik 32ce369d88 Fixes some static analysis warnings and recommendations 9 years ago
Jonas Jenwald 9ceeb21741 Prevent accidentally overriding the `error` function in the `commonobj` messageHandler in api.js (issue 7232) 9 years ago
Prakash Palanisamy a25c29d98d Remove `combineUrl` and replace it with `new URL`. 9 years ago
Yury Delendik 006e8fb59d Introduces UMD headers to the web/ folder. 9 years ago
Yury Delendik 1e4886a15a Remove global window and navigator usages from the core code. 9 years ago
Yury Delendik 1e3e14e6b2 Exposes all functional members via lib exports and use them in viewer. 9 years ago
Yury Delendik 1d12aed5ca Move all PDFJS.xxx settings into display/global. 9 years ago
Rob Wu c8996f654f Detect and handle premature worker load error 9 years ago
Yury Delendik 2fa4dd6f40 Proxy global PDFJS.verbosity to properly configure shared/util. 9 years ago
Yury Delendik a8e5912cb1 Moves shared/global to display/global 9 years ago
Yury Delendik e372f3608b Makes WorkerMessageHandler non-global. 9 years ago