86 Commits (7e392c0205e8f3590976fe2008df2a6ecd71c942)

Author SHA1 Message Date
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
Jonas Jenwald 75557d27d1 Add `getArray` method to `Dict` 10 years ago
Jonas Jenwald 56a43a3181 Make `XRef_indexObjects` more robust against bad PDF files (issue 5752) 10 years ago
Rob Wu c676ecb5a0 Detect scripted auto-print requests 10 years ago
Jonas Jenwald 28f40b1b58 Fetch all indirect objects (i.e. `Ref`s) in `NameTree_getAll` and `NameTree_get` (issue 6204) 10 years ago
Rob Wu fd29bb0c57 Subtract start offset for xrefs in recovery mode 10 years ago
Jonas Jenwald 7df78f997e Slightly more efficient `getDestination` 10 years ago
Jonas Jenwald 940bedf75f Add a unit-test that attempts to fetch a non-existent named destination 10 years ago
Jonas Jenwald a28ed7c834 Always traverse the entire parent chain in Page_getInheritedPageProp (issue 5954) 10 years ago
Jonas Jenwald 760222cf0b Handle the Encoding being a dictionary in PartialEvaluator_preEvaluateFont (bug 1157493) 10 years ago
Jordan Thoms d0ea772fc6 Fix error reading concatenated pdfs 10 years ago
Jonas Jenwald 888cbe0bde Avoid getting stuck in empty nodes in the Pages tree when calling |Catalog_getPageDict| (issue 5644) 10 years ago
Collin Anderson 54e984c763 cleaned whitespace 10 years ago
Tim van der Meij aaa1f2cb11 Implemented NameTree.get() using binary search 11 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
Jonas Jenwald 06b5d97bc6 Remove two instances of leftover console.log debug statements 11 years ago
Yury Delendik cc180d7e2b Removes some bind() calls from fetchAsync 11 years ago
Jonas Jenwald ee0c0dd8a9 Add strict equalities in src/core/obj.js 11 years ago
Nicholas Nethercote 856e1c600b Optimize Ref_toString(). 11 years ago
Nicholas Nethercote 1ad3ffbc7b Factor out repeated Ref key string generation code. 11 years ago
Yury Delendik 623fa29300 Removes error catch from fetchUncompressed() 11 years ago
Yury Delendik 0cd28ebfa3 Telemetry for used stream and font types 11 years ago
Fabian Lange 532d7246ea add object id to streams to prevent infinite loops. 11 years ago
Yury Delendik b20b404061 Fixes typo in getAsync 11 years ago
koderok 81d3f4a89b merged with earlier commits 11 years ago
Yury Delendik f4baea900e Fixes regression in the cleanup 11 years ago