366 Commits (c2f1ff48d574a00f7f7d60e2edb0fa3020370cd8)

Author SHA1 Message Date
Jonas Jenwald b8ec518a1e 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` 8 years ago
Jonas Jenwald a159c4f357 Check that `this.baseUrl` is defined before attempting to fetch any data in `DOMCMapReaderFactory`/`NodeCMapReaderFactory` 8 years ago
Tim van der Meij 2281061882
Enable metadata unit tests for Travis CI and Node.js 8 years ago
Tim van der Meij d4309614f9
Replace `DOMParser` with `SimpleXMLParser` 8 years ago
Tim van der Meij f7fd1db52f
Introduce `DOMSVGFactory` 8 years ago
Jonas Jenwald 5565a6f8bf Slightly refactor the pages rotation handling code in the viewer 8 years ago
Jonas Jenwald cfb4955a92 Replace the `isArray` helper function with the native `Array.isArray` function 8 years ago
Jonas Jenwald 11408da340 Replace the `isInt` helper function with the native `Number.isInteger` function 8 years ago
Rob Wu 73273ccbe9 Add test for withCredentials option 8 years ago
Jonas Jenwald 388851e37b Add a `isDestsEqual` helper function, to allow comparing explicit destinations, in `pdf_history.js` 8 years ago
Jonas Jenwald 0c4985546a Add a `waitOnEventOrTimeout` helper function that allows waiting for an event or a timeout, whichever occurs first 8 years ago
Yury Delendik cd95b426c7 Disables fetch when ReadableStream is not available. 8 years ago
Mukul Mishra 3516a59384 Adds fetch stream logic for networking part of PDF.js 8 years ago
Tim van der Meij 4f02857394
Let the two annotation factories use static methods 8 years ago
Jonas Jenwald 42f2d36d1f Account for broken outlines/annotations, where the destination dictionary contains an invalid `/Dest` entry 8 years ago
Mukul Mishra d16709f5e4 Adds tests for node_stream 8 years ago
Rob Wu d253889d97 __non_webpack_require__ -> require in SystemJS 8 years ago
Tim van der Meij ab820438ae
Move the `XRefMock` in the unit tests to a central location 8 years ago
Apoorv Mishra a129de7bd1 Add unit-tests for colorspace.js 8 years ago
Mukul Mishra 109106794d Adds Streams API support for networking task of PDF.js project. 8 years ago
Yury Delendik c830021b07 Fixes CFF data glyph widths 8 years ago
Mukul Mishra 568b0b6a42 Adds ready capability rejection logic for stream sink. 8 years ago
Jonas Jenwald 16c5d41c5b [api-minor] Add support for PageMode in the API (issue 8657) 8 years ago
Rob Wu 18566091aa Fix display_svg_spec tests. 8 years ago
Rob Wu 01f03fe393 Optimize PNG compression in SVG backend on Node.js 8 years ago
Rob Wu a488ff4f70 Put every test file on a separate lint in jasmine-boot.js 8 years ago
Yury Delendik 24f14d44cb Preventing from using the same canvas for multiple render() 8 years ago
Mukul Mishra bbd9968f76 Added sendWithStream method in MessageHandler. 8 years ago
Jonas Jenwald efbd68efef 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 8 years ago
Yury Delendik b66b705ed7 Using pre-built code for testing. 8 years ago
Jonas Jenwald 0ddf52aca5 Remove the special handling for `nameddest`s that look like standard pageNumbers 8 years ago
Mukul Mishra c9f44f30e5 Adds streams-lib polyfill and exports ReadableStream from shared/util. 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
Jonas Jenwald 32baa6af7a Convert the `DOMCMapReaderFactory` to an ES6 class 8 years ago
Jonas Jenwald 7a040c05d7 Wait until `PDFDocumentLoadingTask.destroy` is resolved before calling `done` in the API unit-tests 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
Jonas Jenwald 40feca12c1 Ignore line-breaks between operator and digit in `Lexer.getNumber` 8 years ago
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 ae04cf1c37 Enable running the `ui_utils` unit-tests on Travis 8 years ago
Jonas Jenwald 84472b30ee Change `getPDFFileNameFromURL` to ignore `data:` URLs for performance reasons (issue 8263) 8 years ago
Yury Delendik 30bee9fe0c Moves Uint32ArrayView and hasCanvasTypedArrays into compatibility.js. 8 years ago
Tim van der Meij e15a2ec523
Annotations: implement support for line annotations 8 years ago
Jonas Jenwald 437104969d Improve the error handling when loading of built-in CMap files fail (PR 8064 follow-up) 8 years ago
Jonas Jenwald 5c0c122a7d Ensure that the `XMLHttpRequest` is `open`ed before attempting to set the `responseType` in the `DOMCMapReaderFactory`, since IE fails otherwise (issue 8193) 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 6d672c4ba6 [api-minor] Add a `pdfjsNext` parameter, and `PDFJS_NEXT` build flag, to allow backwards incompatible API changes 8 years ago
Tim van der Meij 936d3c0698
Widget annotations: do not crash if `Parent` is not a dictionary 8 years ago