114 Commits (e9ba54940d6fc3bd81b11ffafdb9137114798292)

Author SHA1 Message Date
Jonas Jenwald 814fa1dee3 Remove most `assert()` calls (issue 8506) 8 years ago
Jonas Jenwald 15f0963f51 Fix a typo, in the `Catalog.numPages` getter, than prevents shadowing from working correctly 8 years ago
Jonas Jenwald 16c5d41c5b [api-minor] Add support for PageMode in the API (issue 8657) 8 years ago
Yury Delendik d028c26210 Removes error() 8 years ago
Jonas Jenwald 3a20fd165f Refactor `ObjectLoader` to use `Dict`s correctly, rather than abusing their internal properties 8 years ago
Jonas Jenwald f2fc9ee281 Slightly refactor and ES6-ify the code in `ObjectLoader` 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
Jonas Jenwald 0ddf52aca5 Remove the special handling for `nameddest`s that look like standard pageNumbers 8 years ago
Jonas Jenwald ebaa22478c Replace unnecessary `bind(this)` and `var self = this` statements with arrow functions in remaining `src/core/` files 8 years ago
Jonas Jenwald afc74b0178 Enable the `object-shorthand` ESLint rule in `src/shared` 8 years ago
Jonas Jenwald 61ee0de29f Use a simple `RefSetCache` to significantly improve the performance of `Catalog.getPageDict` for certain long documents (PR 8105 follow-up) 8 years ago
Rob Wu 49af56f730 Rethrow MissingDataException when needed 8 years ago
Jonas Jenwald 2a7e5b8a54 Support the `newWindow` flag in white-listed `app.launchURL` JavaScript actions (PR 7794 follow-up) 8 years ago
Jonas Jenwald 14cc6acb90 Ensure that `Dict`s found in Object Streams are assigned an `objId` in `XRef.fetch` 8 years ago
Jonas Jenwald 1ce295541c Always check all Kids nodes, in `Catalog.getPageDict`, to avoid getting stuck in an empty node further down in the Pages tree (issue 8088) 8 years ago
Jonas Jenwald 111419a64a Cache built-in binary CMap files in the worker (issue 4794) 8 years ago
Jonas Jenwald 4046d67fde Enable the `no-else-return` ESLint rule 8 years ago
Jonas Jenwald 14b8523314 Refactor the `password` handling so that it's stored in the `PdfManager`s, instead of in the `XRef` 8 years ago
Jonas Jenwald c6008b4d7c Fix the JSDoc comment for `Catalog.parseDestDictionary` 9 years ago
Jonas Jenwald 6d8a404a9c [api-minor] Add support for a couple of white-listed `JavaScript` actions that contains valid URLs (issue 3897, bug 843699) 9 years ago
Jonas Jenwald 0844a72b4d Add a bit more validation to `Catalog_readPageLabels`, to ensure that the Page Labels are well formed 9 years ago
Jonas Jenwald 2d8d8b5e53 Use `stringToPDFString` to sanitizing bad "Prefix" entries in Page Label dictionaries 9 years ago
Tim van der Meij 5194e68134 Lint: correct code style violations 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 71a781ee5c Deprecate the `isValidUrl` utility function and replace it with `createValidAbsoluteUrl`/`isValidProtocal` functions instead, since the main URL validation is now done using the `new URL` constructor 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 3e77cf6b32 Prevent an infinite loop in `XRef_fetchUncompressed` for encrypted PDF files with indirect objects in the /Encrypt dictionary (issue 7665) 9 years ago
Jonas Jenwald 544d29f5cb Add a `recoveryMode` that suppresses errors from the `Parser`, and utilize it when searching for the main trailer in `XRef_indexObjects` (bug 1250079) 9 years ago
Jonas Jenwald 83ce6f0b6d Adjust the (applicable) existing `isName` callsites to use the new `isName(v, name)` version of the function 9 years ago
Jonas Jenwald 01ab15a6f1 [api-minor] Let `Catalog_getPageIndex` check that the `Ref` actually points to a /Page dictionary 9 years ago
Jonas Jenwald 182d33800a Ignore 'endobj' commands inside of `ObjStm` streams (issue 5241, bug 898610, bug 1037816) 9 years ago
Jonas Jenwald 6111c17c8a Use `Dict_getArray` in more places in `src/core/` to avoid issues when Arrays contain indirect objects 9 years ago
Jonas Jenwald e281ef15db Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229) 9 years ago
Tim van der Meij 6a33dfd13a Implement support for FileAttachment annotations 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
Yury Delendik 2edf2792dc Replaces literal {} created lookup tables with Object.create 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 8ad18959d7 Add support for NumberTree 9 years ago
Jonas Jenwald 0030a82dc3 [api-minor] Add support for URLs in the document outline 9 years ago
Yury Delendik 6b60c8f4db Adds UMD headers to core, display and shared files. 9 years ago
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles 10 years ago
Yury Delendik 59c13b32aa Adds destroy method to the document loading task. 10 years ago
Jonas Jenwald 49883439a5 Ensure that `Dict_getArray` doesn't fail if `xref` in undefined (PR 6485 follow-up) 10 years ago
Jonas Jenwald 9b12c64be5 Cache the regular expression used for finding `obj`s in `XRef_indexObjects`, to avoid unnecessary allocations 10 years ago
Jonas Jenwald 192907e0d2 Make `XRef_indexObjects` even more robust against bad PDF files, by checking for the existence of 'trailer' if 'xref' is not found 10 years ago