89 Commits (3adda80f9768b79b86e0bb2d51af186ce7adb83c)

Author SHA1 Message Date
Jonas Jenwald 2a0207ccaf Enable the `object-shorthand` ESLint rule in `web` 8 years ago
Jonas Jenwald 09edfb3dc0 Re-factor `ViewHistory` to make it properly asynchronous 8 years ago
Jonas Jenwald c5f9193777 Convert the `Preferences` to an ES6 class 8 years ago
Yury Delendik 8e681ce3e2 Change amd to cjs path in ES6 modules 8 years ago
Jonas Jenwald b2c3f8f081 Convert a number of `import * as pdfjsLib from 'pdfjs-web/pdfjs';` cases to only specify the necessary imports 8 years ago
Jonas Jenwald 3b35c15d42 Convert the files in the `/web` folder to ES6 modules 8 years ago
Jonas Jenwald 313060aff5 Refactor the `DownloadManager` initialization in `GENERIC`/`CHROME` builds, to avoid issues when converting the code to ES6 modules 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
Yury Delendik eb4c88cd44 Replacing custom bundling with webpack2. 8 years ago
Rob Wu ece44d36e8 Allow automatic print rotation via enablePrintAutoRotate 8 years ago
Rob Wu c67edabcb3 Set title using logic similar as download name 8 years ago
Rob Wu 228d253f30 Detect download filename based on full URL 8 years ago
Jonas Jenwald a96b0f80dd Convert the only remaining consumer (in `hand_tool.js`) of the 'localized' event to use the `localized` Promise instead, and only re-dispatch the 'localized' event on the `eventBus` for `GENERIC` builds 8 years ago
Jonas Jenwald 648024f5d0 Don't call `bindEvents()` until `PDFViewerApplication` has been initialized, and move binding of `window` event listeners to a helper method, to prevent errors if an event manages to arrive too soon 8 years ago
Jonas Jenwald 849f5dde9d Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing e.g. the viewer components 8 years ago
Jonas Jenwald 2c1436f6cb Refactor `PDFViewerApplication.initialize` into two methods, one that reads the Preferences and one that initializes the various viewer components 8 years ago
Jonas Jenwald 48696a8d06 Make the keyboard shortcuts `Ctrl + Up/Down` behave as `Home/End` (issue 7852) 9 years ago
Yury Delendik f7d6f3a739 Adds SVG rendering capabilities to the PDFViewer. 9 years ago
Yury Delendik a4402c84de Refactor toolbar (and secondary toolbar). 9 years ago
Shain Lafazan 7fec8de502 Additional check to ensure pdfViewer object is defined before handleMouseWheel event accesses its property isInPresentationMode 9 years ago
Jonas Jenwald f461fd64aa Add support for PageLabels in the viewer 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
Jonas Jenwald 885ba83624 Add the number of `textDivs` to the `textlayerrendered` event, to avoid having to manually get that information in the event handler 9 years ago
Jonas Jenwald 3904be8889 Ensure that we cancel any pending `textLayer` rendering operations when the viewer is closed (issue 7274) 9 years ago
Jonas Jenwald a824c6c4f6 Ensure that any pending rendering operations in `PDFViewer`/`PDFThumbnailViewer` are cancelled when the viewer is closed 9 years ago
Yury Delendik c09f634bb6 Removes mozPrintCallback polyfill, converts canvas to PNG. 9 years ago
Yury Delendik 24a7a58da7 Moves mozPrintCallback specific code to firefox_printservice.js 9 years ago
Yury Delendik 223a18ccc8 Simplified wheel processing. 9 years ago
Jonas Jenwald 1a2f142a14 Prevent errors if the 'resize' event is fired before the `eventBus` has been initialized 9 years ago
Tim van der Meij 2da2c45889 Interactive forms: remove global PDFJS usage 9 years ago
Jonas Jenwald 6e126b31dc Only update the `max-height` of the `SecondaryToolbar` when it's actually visible 9 years ago
Jonas Jenwald e12c48b73f Add a `enhanceTextSelection` preference 9 years ago
Tim van der Meij e686db250c Render interactive form (AcroForm) text widget annotations 9 years ago
Tim van der Meij eb2ba3287a Revert "Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing the viewer components" 9 years ago
Tim van der Meij a2525a8ba3 Revert "Add a `enhanceTextSelection` preference to the viewer" 9 years ago
Jonas Jenwald 15e45d772f Add a `enhanceTextSelection` preference to the viewer 9 years ago
Jonas Jenwald ffb876fdf4 Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing the viewer components 9 years ago
Jonas Jenwald 0db76dc58c Change the `GoToPage` Named Action to select the contents of the `pageNumber` input, rather than just focusing the element 9 years ago
Jeremy Press 6faa84abdb Continuing fairexpand #6663 9 years ago
Jonas Jenwald f3b7fa091d Ensure that the zoom buttons are disabled correctly if the `scale` is smaller/larger than `MIN_SCALE/MAX_SCALE` in `PDFViewerApplication._updateUIToolbar` 9 years ago
Jonas Jenwald 076e25f1ca Prevent destinations with bad left/top values from scrolling the wrong page into view (bug 874482) 9 years ago
Jonas Jenwald 7706cfa9fe Log an error when the value passed to `set currentPageNumber` is out of bounds (PR 7502 followup) 9 years ago
Jonas Jenwald b7cb44af88 Remove the `previousPageNumber` parameter from the `pagechanging`/pagechange` events, and stop dispatching the events if the input is out of bounds 9 years ago
Jonas Jenwald cb6a7e5503 Remove handling of fallback arguments from `PDFViewerApplication.open` 9 years ago
Jonas Jenwald 2f127df97b Add back moz-specific fullscreen support code for ´MOZCENTRAL` builds (bug 1268749, PR 7273 follow-up) 9 years ago
Jonas Jenwald dd0fe10a52 Consolidate updating of various Toolbar state (e.g. page and scale) in one method in `PDFViewerApplication` 9 years ago
jazzy-em 0a347ec04d Added multiple term search functionality (with default phrase search) 9 years ago
Jonas Jenwald b354682dd6 [api-minor] Let `LinkAnnotation`/`PDFLinkService_getDestinationHash` return a stringified version of the destination array for explicit destinations 9 years ago
Tim van der Meij f4ae277355 Convert the secondary toolbar to a class 9 years ago