Commit Graph

  • 58f865404c Fix (some) vulnerabilities reported by npm audit Jonas Jenwald 2020-11-29 09:47:33 +01:00
  • e15c63abc7 Update npm packages Jonas Jenwald 2020-11-29 09:43:20 +01:00
  • e072f1db6b
    Merge pull request #12652 from calixteman/quickjs_followup Tim van der Meij 2020-11-25 21:58:03 +01:00
  • 256068556d
    Merge pull request #12662 from Snuffleupagus/issue-12402 Tim van der Meij 2020-11-25 21:54:41 +01:00
  • 1bde38af38
    Merge pull request #12655 from calixteman/12654 Tim van der Meij 2020-11-25 21:51:17 +01:00
  • 672e2f1832
    Merge pull request #12656 from mozilla/dependabot/npm_and_yarn/highlight.js-9.18.5 Tim van der Meij 2020-11-25 21:28:45 +01:00
  • 8a132f584d Check the top-level /Pages dictionary when finding the trailer in XRef.indexObjects (issue 12402) Jonas Jenwald 2020-11-25 13:44:57 +01:00
  • 18b525de2e Parenthesis in names are not escaped when saving Calixte Denizet 2020-11-24 18:25:26 +01:00
  • b6fdade6c6
    Bump highlight.js from 9.13.1 to 9.18.5 dependabot[bot] 2020-11-24 23:29:33 +00:00
  • 8413a5865a Add a README about quickjs-eval.js file (build and license) Calixte Denizet 2020-11-24 13:54:04 +01:00
  • b1d3b6eb12
    Merge pull request #12647 from timvandermeij/update-puppeteer Tim van der Meij 2020-11-22 16:07:32 +01:00
  • a936f1f70c
    Update Puppeteer to version 5.5.0 Tim van der Meij 2020-11-22 14:26:32 +01:00
  • d88d47d621
    Merge pull request #12645 from Snuffleupagus/async-PDFDocumentProperties-open Tim van der Meij 2020-11-21 14:42:48 +01:00
  • 4615815cc7 Convert the PDFDocumentProperties.open method to be async Jonas Jenwald 2020-11-21 13:42:02 +01:00
  • d3f7959689
    Merge pull request #12642 from Snuffleupagus/api-getMetadata-contentLength Tim van der Meij 2020-11-20 21:24:33 +01:00
  • 283aac4c53 JS -- Implement app object * https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf * Add color, fullscreen objects + few constants. Calixte Denizet 2020-11-16 14:27:27 +01:00
  • 01d12b465c [api-minor] Add "contentLength" to the information returned by the getMetadata method Jonas Jenwald 2020-11-20 14:17:23 +01:00
  • c88e805870
    Merge pull request #12604 from calixteman/quickjs Brendan Dahl 2020-11-19 08:40:21 -08:00
  • 4ba28de260
    Merge pull request #12567 from calixteman/hidden Brendan Dahl 2020-11-19 08:35:47 -08:00
  • c7974e9996 JS -- Add a sandbox based on quickjs * quickjs-eval.js has been generated using https://github.com/mozilla/pdf.js.quickjs/ * lazy load of sandbox code * Rewrite tests to use the sandbox * Add a task watch-sandbox which update bundle pdf.sandbox.js on change in the sandbox code Calixte Denizet 2020-11-09 14:45:02 +01:00
  • d3936ac9d2
    Merge pull request #12636 from Snuffleupagus/AppOptions-setAll Tim van der Meij 2020-11-18 21:16:09 +01:00
  • cc861c34e9 Add an AppOptions.setAll method, and use it in PDFViewerApplication._readPreferences Jonas Jenwald 2020-11-17 13:44:15 +01:00
  • 4886a7cf69 Skip Promise.all in PDFViewerApplication._parseHashParameters unless actually necessary Jonas Jenwald 2020-11-17 13:37:21 +01:00
  • a06f487bd4
    Merge pull request #12630 from Snuffleupagus/BasePreferences-less-async Tim van der Meij 2020-11-17 00:07:06 +01:00
  • eda730af65
    Merge pull request #12625 from Snuffleupagus/viewerCssTheme-option Tim van der Meij 2020-11-17 00:00:38 +01:00
  • 40a4d53fb3 Add a new preference, viewerCssTheme, to allow forcing the use of the light/dark viewer CSS themes (issue 12290) Jonas Jenwald 2020-11-15 13:29:50 +01:00
  • f39d87bff1
    Merge pull request #12569 from calixteman/events Brendan Dahl 2020-11-16 10:26:29 -08:00
  • 7adcb90a2d Reduce, now unnecessary, asynchronicity in the BasePreferences constructor Jonas Jenwald 2020-11-16 13:56:58 +01:00
  • ed27fc6c52
    Merge pull request #12624 from Snuffleupagus/update-packages Tim van der Meij 2020-11-15 23:20:40 +01:00
  • 237c2f7832 Update l10n files Jonas Jenwald 2020-11-15 13:53:59 +01:00
  • e1f43907d2 Update npm packages Jonas Jenwald 2020-11-15 13:51:52 +01:00
  • 2aefc406b4
    Merge pull request #12622 from Snuffleupagus/hasJSActions-cleanup Tim van der Meij 2020-11-14 17:04:15 +01:00
  • bfc5d0d57c
    Merge pull request #12621 from calixteman/12614 Tim van der Meij 2020-11-14 16:44:50 +01:00
  • 1bf640bb86
    Merge pull request #12618 from Snuffleupagus/thumbnails-render-transform Tim van der Meij 2020-11-14 16:32:09 +01:00
  • 1f65896093
    Merge pull request #12616 from Snuffleupagus/PDFThumbnailViewer-cleanup Tim van der Meij 2020-11-14 16:24:37 +01:00
  • de628cec59 Some hasJSActions, and general annotation-code, related cleanup in the viewer and API Jonas Jenwald 2020-11-14 13:38:36 +01:00
  • 03018cfe40 Follow-up for #12585: set elements class in render instead of in _createQuadrilaterals Calixte Denizet 2020-11-14 11:42:35 +01:00
  • 2e551acc8d Ensure that rendering of thumbnails work correctly on HiDPI displays (issue 9820) Jonas Jenwald 2020-11-13 15:14:05 +01:00
  • 1a22836dcb Improve the cleanup functionality for thumbnails Jonas Jenwald 2020-11-13 13:12:52 +01:00
  • 59b35600be
    Merge pull request #12613 from Snuffleupagus/isPageCached Tim van der Meij 2020-11-12 21:57:21 +01:00
  • 4a9994b54c Trigger cleanup, once rendering has finished, in PDFThumbnailView.draw Jonas Jenwald 2020-11-12 15:49:29 +01:00
  • 8b5bc8d7f9 Improve the pageNumber validation in BaseViewer.isPageVisible (PR 10217 follow-up) Jonas Jenwald 2020-11-12 15:24:36 +01:00
  • 85de01e34b
    Merge pull request #12585 from calixteman/12576 Brendan Dahl 2020-11-10 10:49:58 -08:00
  • 611207d2c9 Fix popup for highlights without popup (follow-up of #12505) * remove 1st param of _createPopup (almost useless for a method) * prepend popup div to avoid to have them on top of some highlights (and so "disable" partially mouse events) * add a ref test for issue #12504 Calixte Denizet 2020-11-05 17:49:32 +01:00
  • 2dfac4cb41 JS -- Fix events dispatchment and add tests * dispatch event to take into account calculation order * use a map for actions in Field Calixte Denizet 2020-11-03 19:24:07 +01:00
  • 83658c974d
    Merge pull request #12582 from calixteman/doc calixteman 2020-11-10 16:26:38 +01:00
  • 8de98079ca JS -- Implement doc object * https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=335 * it has all the properties/methods defined in the spec * unimplemented methods are there but with an empty body to avoid exception when calling an undefined method * implement zoom, zoomType, layout, pageNum, ... Calixte Denizet 2020-11-05 13:22:35 +01:00
  • b11592a756 JS -- hidden annotations must be built in case a script show them * in some pdf, there are actions with "event.source.hidden = ..." * in order to handle visibility when printing, annotationStorage is extended to store multiple properties (value, hidden, editable, ...) Calixte Denizet 2020-11-03 16:04:08 +01:00
  • 1c17e078ec
    Merge pull request #12546 from calixteman/hasjs Tim van der Meij 2020-11-10 00:26:54 +01:00
  • a5279897a7 JS -- Add listener for sandbox events only if there are some actions * When no actions then set it to null instead of empty object * Even if a field has no actions, it needs to listen to events from the sandbox in order to be updated if an action changes something in it. Calixte Denizet 2020-10-28 19:16:56 +01:00
  • 55f55f5859
    Merge pull request #12598 from Snuffleupagus/globalThis-check Tim van der Meij 2020-11-07 23:42:21 +01:00
  • b068cdb725
    Merge pull request #12595 from Snuffleupagus/src-display-optional-chaining Tim van der Meij 2020-11-07 23:40:46 +01:00
  • 797feddc22
    Merge pull request #12594 from Snuffleupagus/eslint-no-useless-escape Tim van der Meij 2020-11-07 23:36:16 +01:00
  • a03b383edb Fail early, in modern GENERIC builds, if globalThis isn't available (PR 11799 follow-up, issue 12596) Jonas Jenwald 2020-11-07 19:00:33 +01:00
  • 1dad255784 Convert files in the src/display/-folder to use optional chaining where possible Jonas Jenwald 2020-11-06 14:36:16 +01:00
  • 9602844368 Enable the ESLint no-useless-escape rule (PR 12551 follow-up) Jonas Jenwald 2020-11-07 12:59:53 +01:00
  • e3851a6765
    Merge pull request #12591 from Snuffleupagus/strokeColor-Pattern Tim van der Meij 2020-11-06 22:16:26 +01:00
  • 018fd43096
    Merge pull request #12530 from calixteman/js_utils Brendan Dahl 2020-11-06 09:59:50 -08:00
  • f69e848b1c JS -- Add 'util' object Calixte Denizet 2020-10-26 10:14:57 +01:00
  • 78de919bf4 Improve the Pattern-detection in CanvasGraphics.stroke Jonas Jenwald 2020-11-06 11:45:57 +01:00
  • be0794cb08
    Merge pull request #12564 from hakubo/patch-1 Tim van der Meij 2020-11-06 00:02:11 +01:00
  • 99ac2d1036
    Merge pull request #12583 from Snuffleupagus/nonBlendModesSet Tim van der Meij 2020-11-05 23:53:39 +01:00
  • 646f895d35
    Merge pull request #12568 from calixteman/defaultvalue Tim van der Meij 2020-11-05 22:53:21 +01:00
  • 082cd8fc6c Add global caching, for /Resources without blend modes, and use it to reduce repeated fetching/parsing in PartialEvaluator.hasBlendModes Jonas Jenwald 2020-11-05 13:35:33 +01:00
  • 39f5954729 JS -- Add default value in annotation data * these values are used when a form is resetted Calixte Denizet 2020-11-03 16:53:21 +01:00
  • b642d49108 Make sure that Popup is rendered next to trigger for textAnnotation Jakub Olek 2020-11-03 07:44:21 +01:00
  • 8b652d685b
    Merge pull request #12572 from Snuffleupagus/getVisibleElements-object Tim van der Meij 2020-11-04 22:57:37 +01:00
  • 1de2bc4816
    Merge pull request #12505 from calixteman/12504 Brendan Dahl 2020-11-04 10:41:28 -08:00
  • ba761e42f0 Change the getVisibleElements helper function to take a parameter object Jonas Jenwald 2020-11-04 12:05:29 +01:00
  • 4e13559cb0
    Merge pull request #12559 from Snuffleupagus/goToPage-labels Tim van der Meij 2020-11-03 23:06:49 +01:00
  • 3e52098e29
    Merge pull request #12555 from calixteman/color Tim van der Meij 2020-11-02 23:55:39 +01:00
  • 8550f73b22
    Merge pull request #12562 from Snuffleupagus/lgtm-exclude-unused-local-variable Tim van der Meij 2020-11-02 23:26:24 +01:00
  • 322b1072af Use optional chaining in web/pdf_history.js Jonas Jenwald 2020-10-31 11:24:39 +01:00
  • 9d11b51a3e Replace css color rgb(...) by #... Calixte Denizet 2020-10-30 14:51:50 +01:00
  • 83a3738379 Try adding a very basic lgtm.yml file, to prevent LGTM complaining about unused variables (issue 11965) Jonas Jenwald 2020-11-01 17:00:40 +01:00
  • 911948c5c0 Also update the browser history when the user *manually* change pages using the pageNumber-input (PR 12493 follow-up) Jonas Jenwald 2020-10-31 10:17:28 +01:00
  • 4eaa058c16 Add early returns to a couple of PDFLinkService methods, when there's no active PDF document Jonas Jenwald 2020-10-31 09:54:00 +01:00
  • 47b3b39a88
    Merge pull request #12561 from Snuffleupagus/static-analyzer-warnings Tim van der Meij 2020-11-01 14:46:20 +01:00
  • c89f21b9b2
    Merge pull request #12560 from Snuffleupagus/update-packages Tim van der Meij 2020-11-01 14:10:49 +01:00
  • a177afc206 Fix some static static analyzer warnings (issue 11965) Jonas Jenwald 2020-11-01 11:46:10 +01:00
  • 75af932b79 Update npm packages Jonas Jenwald 2020-11-01 10:04:57 +01:00
  • 46e60a266c
    Merge pull request #12552 from Snuffleupagus/annotation-fixes Tim van der Meij 2020-10-31 00:41:39 +01:00
  • e341e6e542
    Merge pull request #12525 from brendandahl/mark-info Tim van der Meij 2020-10-31 00:05:19 +01:00
  • 8a8b4f9697 Collect telemetry in the viewer on whether a PDF is tagged. Brendan Dahl 2020-10-23 17:21:08 -07:00
  • f5c821e9c3 [api-minor] Implement API to get MarkInfo from the catalog. Brendan Dahl 2020-10-23 16:30:36 -07:00
  • fdb6520012 Change the Catalog.openAction getter back to using an Object internally (PR 12543 follow-up) Jonas Jenwald 2020-10-30 13:27:05 +01:00
  • a1e5581a0b Let Annotation._collectActions return null when no actions are present Jonas Jenwald 2020-10-29 14:17:32 +01:00
  • 8540b4cc76 Stop calling Font.charsToGlyphs, in src/core/annotation.js, with unused arguments Jonas Jenwald 2020-10-29 14:05:42 +01:00
  • bf870bd2ac
    Merge pull request #12551 from Snuffleupagus/no-useless-escape Tim van der Meij 2020-10-29 23:18:51 +01:00
  • 46e94cad17 Fix *some* errors reported by the ESLint no-useless-escape rule Jonas Jenwald 2020-10-29 15:40:40 +01:00
  • 7853d9798b
    Merge pull request #12543 from Snuffleupagus/openActionMap Tim van der Meij 2020-10-28 22:21:49 +01:00
  • 91ca2674c3
    Merge pull request #12542 from Snuffleupagus/murmurhash-slice-test Tim van der Meij 2020-10-28 22:15:00 +01:00
  • 820fb7f969 Update all Object.fromEntries call-sites to ensure that a null prototype is used Jonas Jenwald 2020-10-28 14:14:27 +01:00
  • 9fc7cdcc9d Use a Map, rather than an Object, internally in the Catalog.openAction getter (PR 11644 follow-up) Jonas Jenwald 2020-10-28 14:04:09 +01:00
  • 852c61ef57 Add a MurmurHash3_64.update unit-test for TypedArrays which share the same underlying ArrayBuffer (PR 12534 follow-up) Jonas Jenwald 2020-10-28 12:03:10 +01:00
  • ea4d88a330
    Merge pull request #12395 from calixteman/checks Tim van der Meij 2020-10-28 00:11:10 +01:00
  • 08b00c13a7
    Merge pull request #12539 from Snuffleupagus/TestReporter-import Tim van der Meij 2020-10-27 22:26:37 +01:00
  • 6fae381c57
    Merge pull request #12540 from Snuffleupagus/BaseViewer-version-check Tim van der Meij 2020-10-27 22:22:47 +01:00
  • 6be2f84b4e Render not displayed annotations in using normal appearance when printing Calixte Denizet 2020-09-19 17:47:38 +02:00
  • 62b19f7e9a Ensure that the same version of PDF.js is used in both the API and the Viewer (PR 8959 follow-up) Jonas Jenwald 2020-10-27 17:09:42 +01:00