87 Commits (bd0e4dc4e30252021cf58f5bbd1b22cec50502b8)

Author SHA1 Message Date
Jonas Jenwald fce2cfddcf Check if `pageView.pdfPage` exists in `PDFViewer._ensurePdfPageLoaded`, to avoid potentially calling `PDFPageView.setPdfPage` multiple times for the same page 8 years ago
Jonas Jenwald b0a4f6de8f Use `createPromiseCapability` in `/web` files 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
Rob Wu ece44d36e8 Allow automatic print rotation via enablePrintAutoRotate 8 years ago
Rob Wu 775441b7c6 Refactor: configurable page rotation in print job 8 years ago
Jonas Jenwald 4046d67fde Enable the `no-else-return` ESLint rule 8 years ago
Yury Delendik f7d6f3a739 Adds SVG rendering capabilities to the PDFViewer. 9 years ago
Jonas Jenwald efb9619e53 Add PageLabels to `PDFPageView` and `PDFThumbnailView` 9 years ago
Jonas Jenwald f461fd64aa Add support for PageLabels in the viewer 9 years ago
Jonas Jenwald 2ce9da9b7a Fix a couple of JSDoc `@typedef`s to use `@property` (instead of `@param`) to fix some missing documentation when running `gulp jsdoc` 9 years ago
Yury Delendik 0576c9c6c6 Replaces all preprocessor directives with PDFJSDev calls. 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 24a7a58da7 Moves mozPrintCallback specific code to firefox_printservice.js 9 years ago
Tim van der Meij 2da2c45889 Interactive forms: remove global PDFJS usage 9 years ago
Jeremy Press 6faa84abdb Continuing fairexpand #6663 9 years ago
Jonas Jenwald 31cd23a6df Remove an obsolete comment for `onAfterDraw` in pdf_viewer.js 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
Xiliang Chen 6cb77d6580 fix outline may jump to previous page issue 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 50aeb00adf Add validation of the `rotation` argument passed to `set pagesRotation` in `PDFViewer` 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 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 9f34700e0d Ensure that we don't reset the current page view if the user inputs an invalid page number (PR 7289 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
Jonas Jenwald b354682dd6 [api-minor] Let `LinkAnnotation`/`PDFLinkService_getDestinationHash` return a stringified version of the destination array for explicit destinations 9 years ago
Yury Delendik 9f68e3f1bc Disable pagechange event if page is not changing. 9 years ago
Yury Delendik 4a2c76a34f Adds pre and post UI control change events. 9 years ago
Yury Delendik 7fd3db9977 Adds EventBus. 9 years ago
Yury Delendik 4165cedc9f Replace pdfjsLib with module that represents pdf.js. 9 years ago
Yury Delendik 006e8fb59d Introduces UMD headers to the web/ folder. 9 years ago
Yury Delendik 1e3e14e6b2 Exposes all functional members via lib exports and use them in viewer. 9 years ago
Tim van der Meij 6a33dfd13a Implement support for FileAttachment annotations 9 years ago
Jonas Jenwald 3079dd937f Remove a superfluous "s" in `AnnotationsLayerBuilder` from files in web/ 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
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles 10 years ago
Tony Jin 570f144fc3 Fix minor capitalization issue in viewer 10 years ago
Jonas Jenwald e629882f2a Correctly handle /FitH destinations with `null` as the parameter 10 years ago
Xiliang Chen a059f9fcbb Fix exception when rotate page without a document 10 years ago
Jonas Jenwald 93d82e21d5 Move handling of the 'custom' scale value from pdf_viewer.js to viewer.js 10 years ago
Jonas Jenwald d0c071a40d Prevent re-rendering of pages because of rounding errors when computing the scale value 10 years ago
Jonas Jenwald 4364b37e55 Simplify the SimpleLinkService and use it to pass in a linkService instance in DefaultAnnotationsLayerFactory 10 years ago
Jonas Jenwald ac3233bfa4 Use "private" properties in PDFViewer_scrollPageIntoView 10 years ago
Yury Delendik 1b847df2f3 Using pdfjs-dist as a library for b2g viewer. 10 years ago
Jonas Jenwald d940078d95 Make sure that the document is rendered on zooming and rotation for `PDFViewer` instances using the `defaultRenderingQueue` 10 years ago
Jonas Jenwald ffeba9c630 Move the page switching code into `set currentPageNumber` in `PDFViewer` instead of placing it in the `pagechange` event handler 10 years ago
Yury Delendik 0ef6212b64 Refactors PDFLinkService. 10 years ago
Jonas Jenwald ba0eb7fdc6 Add the |location| to the |updateviewarea| UI event 10 years ago
Jonas Jenwald b1c4b85d4f Change |pages| to be a "private" property of |PDFViewer| 10 years ago