97 Commits (80c33253ed0f70708753a13e49e361ebdac354f2)

Author SHA1 Message Date
Mukul Mishra 0c13d0ff46 Adds Streams API in getTextContent to stream data. 8 years ago
Jonas Jenwald a8c87f8019 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 8 years ago
Jonas Jenwald 982b6aa65b Convert the files in the `/src/core` folder to ES6 modules 8 years ago
巴里切罗 8d5d97264e fix(svg) adjust strategy for decoding JPEG images 8 years ago
Jonas Jenwald 3e20d30afc Change the signatures of the `PartialEvaluator` "constructor" and its `getOperatorList`/`getTextContent` methods to take parameter objects 8 years ago
Yury Delendik 008aa56ac6 Adds initializeFromPort to the WorkerMessageHandler. 8 years ago
Jonas Jenwald afc74b0178 Enable the `object-shorthand` ESLint rule in `src/shared` 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
Jonas Jenwald 3705e5e459 Use a proper `MessageHandler` for `PartialEvaluator.getTextContent` to avoid errors for fonts relying on built-in CMap files (PR 8064 follow-up) 8 years ago
Yury Delendik facefb0c79 Move compatibility code to the shared/compatibility.js. 8 years ago
Jonas Jenwald 9082f08e37 Enable running the `cmap` unit-tests on Travis by utilizing a `NodeCMapReaderFactory` 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 fa0e559fe2 New node.js check to protect from webpack. 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
Jonas Jenwald bc736fdc7d Adjust the `brace-style` ESLint rule to disallow single lines (and also enable `no-iterator`) 8 years ago
Jonas Jenwald 52e0f51917 Enable the `no-unused-vars` 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 c850968fa7 Remove `globals` that are now unnecessary thanks to the use of various ESLint environments (e.g. Node, ShellJS, Jasmine) 8 years ago
Jonas Jenwald 2f3805efbc Switch to using ESLint, instead of JSHint, for linting 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
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
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
Yury Delendik 2fa4dd6f40 Proxy global PDFJS.verbosity to properly configure shared/util. 9 years ago
Yury Delendik e372f3608b Makes WorkerMessageHandler non-global. 9 years ago
Yury Delendik bda5e6235e Removes global PDFJS usage from the src/core/. 9 years ago
Jonas Jenwald 91756f6e86 Pass the `PDFJS.postMessageTransfer` parameter to the worker, so that the `MessageHandler` can be setup correctly in `createDocumentHandler` (issue 6957) 9 years ago
Yury Delendik a022f6f069 Reverts back un-need change made at #6879. 9 years ago
Yury Delendik 0d591719d9 Makes PDF data reading Streams API friendly. 9 years ago
Jonas Jenwald 85cf90643f [api-minor] Add support for PageLabels in the API 9 years ago
Yury Delendik fc3282db56 Adds RequireJS to worker. 9 years ago
Yury Delendik 79c2f69c32 Adds/modifies examples for node.js and webpack. 9 years ago
Yury Delendik b084dc09ee Allows requirejs and node load fake worker files. 9 years ago
Yury Delendik 6b60c8f4db Adds UMD headers to core, display and shared files. 9 years ago
Yury Delendik c9cb6a3025 Replaces UnsupportedManager with callback. 10 years ago
Yury Delendik 8dff301ce1 Worker shall wait for MessageHandler to be created at api side. 10 years ago
Jonas Jenwald 6dfe53b976 [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that enables replacing of all whitespace with standard spaces in the textLayer (issue 6612) 10 years ago
Yury Delendik 06c1904675 Refactors FontLoader to group fonts per document. 10 years ago
Yury Delendik 09772e1e15 Creates PDFWorker, separates fetchDocument from transport. 10 years ago
Yury Delendik acdd49f480 Adds peer communication between MessageHandlers. 10 years ago
Jonas Jenwald b05652ca97 [api-minor] Let `getAnnotations` fetch all annotations by default, unless an intent is specified 10 years ago
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles 10 years ago
Rob Wu c604cc22d1 Improve error message for non-existent local files 10 years ago
Tony Jin ef667823dd [api-minor] Add an optional param to DocumentInitParameters for specifying the range request chunk size to use. Defaults to 2^16 = 65536. 10 years ago
Jonas Jenwald 1c66d4a106 Add a `totalLength` getter to `OperatorList`, since the `length` is zero after flushing 10 years ago
Yury Delendik 58c3ea0820 Adds thread abort capabilities. 10 years ago
Yury Delendik 59c13b32aa Adds destroy method to the document loading task. 10 years ago
Tim van der Meij 0c84899c0a Revert #5603 regarding Chrome range request bug 10 years ago
Rob Wu c02b2cb37c Use Content-Range instead of Content-Length #5512 10 years ago