75 Commits (52998c5fe1a3d74b47de6474b9b4a99346379e1a)

Author SHA1 Message Date
Jonas Jenwald 7560f12a17 Enable the `object-shorthand` ESLint rule 8 years ago
Tim van der Meij 35730148a7
Convert the files in the `/test/unit` folder to ES6 modules 8 years ago
Jonas Jenwald e6db75b2ef Use the `DOMCanvasFactory` in the API unit-tests 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 bc736fdc7d Adjust the `brace-style` ESLint rule to disallow single lines (and also enable `no-iterator`) 8 years ago
porlan1 d9e1cb7955 unit test files as UMD modules 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 efbb1e9b1c Fix errors reported by the `new-cap` ESLint rule 8 years ago
Jonas Jenwald e386af7b22 Adjust one of the Page Label unit-tests to use a PDF file where the "St" entry is both present and non-default (i.e. greater than one) 9 years ago
Sean Burke f76cd2ce43 Expose the optional UserUnit entry as a page property 9 years ago
Jonas Jenwald 2d8d8b5e53 Use `stringToPDFString` to sanitizing bad "Prefix" entries in Page Label dictionaries 9 years ago
Jonas Jenwald 2b79782377 [api-minor] Add basic support for `Launch` actions (issue 1778, issue 3897, issue 6616) 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 42f07c6262 [api-minor] Use the `new URL` constructor when validating URLs in annotations and the outline, as a complement to only checking the protocol, and add a bit more validation to `Catalog_parseDestDictionary` 9 years ago
Jonas Jenwald e64bc1fd13 Move parsing of destination dictionaries to a helper function 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 72c1df726e Add a `getAttachments` unit-test for a PDF file that actually contains attachments 9 years ago
Jonas Jenwald 01ab15a6f1 [api-minor] Let `Catalog_getPageIndex` check that the `Ref` actually points to a /Page dictionary 9 years ago
Tim van der Meij 6a7012aaca Remove unused variables 9 years ago
Yury Delendik 879340d741 Removes hijack describe() hack from unit tests. 9 years ago
Jonas Jenwald 7163e1eff3 Faster unit-tests by using `beforeAll`/`afterAll` in api_spec.js 9 years ago
Jonas Jenwald ac772017b6 Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects 9 years ago
Yury Delendik 0a700fa29d Updates Jasmine version. 9 years ago
Yury Delendik 0d591719d9 Makes PDF data reading Streams API friendly. 9 years ago
Jonas Jenwald 7cf9de2c17 [api-minor] Change `getOutline` to actually return the RGB color of outline items 9 years ago
Jonas Jenwald 98db068079 Reduce the overall indentation level in `Catalog_readDocumentOutline`, by using early returns, in order to improve readability 9 years ago
Tim van der Meij 5bcf4c1895 Destroy workers when they are no longer needed in the unit tests 9 years ago
Jonas Jenwald 1140a34f5c [api-minor] Change `getPageLabels` to always return the pageLabels, even if they are identical to standard page numbering 9 years ago
Jonas Jenwald 85cf90643f [api-minor] Add support for PageLabels in the API 9 years ago
Jonas Jenwald 0030a82dc3 [api-minor] Add support for URLs in the document outline 9 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
Rob Wu 07f2a43943 Add tests for parallel rendering 10 years ago
Yury Delendik 09772e1e15 Creates PDFWorker, separates fetchDocument from transport. 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
Jonas Jenwald 25e55322c4 Improved `get fingerprint` unit-tests (PR 5124) 10 years ago
Yury Delendik 59c13b32aa Adds destroy method to the document loading task. 10 years ago
Jonas Jenwald e04113a35b Add unit-tests for the `onPassword/onProgress` callbacks of the API 10 years ago
Jonas Jenwald 5987197bd5 Ensure that all `getDocument` unit-tests returns the expected data 10 years ago
Jonas Jenwald 34cbee9bd3 Add unit-tests for PR 6531 10 years ago
Jonas Jenwald e8ad6c9d13 Add a unit-test for bug 1020226 10 years ago
Jonas Jenwald ae255f8921 Slightly improved `getPage` unit-tests 10 years ago
Rob Wu c676ecb5a0 Detect scripted auto-print requests 10 years ago
Jonas Jenwald 940bedf75f Add a unit-test that attempts to fetch a non-existent named destination 10 years ago
Jonas Jenwald 38955d491f Further improvements of the getStats and getDownloadInfo unit tests 10 years ago
Mike Corbin 4c9b65f0e1 Extract correct PDF format version from the catalog 10 years ago
Jonas Jenwald 36ac67583f Remove commented out code about |disableWorker| in the test suite 10 years ago
Tim van der Meij b215af30d3 Require destinations when they are needed and do not fetch all of them in advance 11 years ago