Commit Graph

  • 0d85de980b
    Merge pull request #12954 from calixteman/xfa_attrs Brendan Dahl 2021-02-03 11:45:45 -08:00
  • 7e0554afe2 XFA -- Add attributes and children in XFAObject - in order to evaluate SOM expressions nodes and their attributes must be checked in the same order as in the xml; - add an object XFAObjectArray with a parameter max to handle multiple children with the same name. Calixte Denizet 2021-02-03 18:55:56 +01:00
  • d1586bbbe7 Don't focus the PasswordPrompt input-field on load, when the viewer is embedded in e.g. an iframe (issue 12951) Jonas Jenwald 2021-02-03 15:48:40 +01:00
  • 86a4ba55c5
    Merge pull request #12947 from Snuffleupagus/Puppeteer-6 Tim van der Meij 2021-02-02 23:18:08 +01:00
  • 7a765343e4
    Merge pull request #12943 from Snuffleupagus/issue-6961-test Tim van der Meij 2021-02-02 23:15:59 +01:00
  • 003965e1e8 Update Puppeteer to version 6 (issue 12945) Jonas Jenwald 2021-02-02 13:18:22 +01:00
  • cacb1cc7ba Re-enable the issue6961 test-case (issue 7112) Jonas Jenwald 2021-02-02 10:31:16 +01:00
  • e16c99fc02
    Merge pull request #12879 from calixteman/xfa_parser Brendan Dahl 2021-02-01 18:34:39 -08:00
  • 0ff5cd7eb5 XFA - Add a parser for XFA files - the parser is base on a class extending XMLParserBase - it handle xml namespaces: * each namespace is assocated with a builder * builder builds nodes belonging to the namespace * when a node is inserted in the parent namespace compatibility is checked (if required) - to avoid name collision between xml names and object properties, use Symbol. Calixte Denizet 2021-02-01 13:44:03 +01:00
  • c92011e093
    Merge pull request #12935 from Snuffleupagus/fullscreen-MOZCENTRAL-rm-prefixes Tim van der Meij 2021-01-31 14:20:50 +01:00
  • 1c802e0e6c Remove prefixed fullscreen properties/methods from the MOZCENTRAL builds Jonas Jenwald 2021-01-31 13:45:14 +01:00
  • 59f938d073
    Merge pull request #12933 from Snuffleupagus/rm-CSS-variables-polyfill Tim van der Meij 2021-01-30 16:00:55 +01:00
  • 619e1d8bcf Stop polyfilling CSS variables in GENERIC builds Jonas Jenwald 2021-01-30 15:34:35 +01:00
  • 9af8501e6c
    Merge pull request #12932 from Snuffleupagus/rm-ms-prefix Tim van der Meij 2021-01-30 14:36:35 +01:00
  • 88ca213399 Stop including -ms prefixed CSS rules in GENERIC builds Jonas Jenwald 2021-01-30 14:00:04 +01:00
  • 31b78921ca
    Merge pull request #12931 from Snuffleupagus/errorFontLoadNative-no-fallback-bar Tim van der Meij 2021-01-29 22:04:28 +01:00
  • fec8c4c43f Access this._onUnsupportedFeature directly in FontFaceObject.getPathGenerator Jonas Jenwald 2021-01-29 16:29:16 +01:00
  • 5a522a5c71 Stop showing the fallback bar for "errorFontLoadNative" errors (PR 10539 follow-up) Jonas Jenwald 2021-01-29 16:28:58 +01:00
  • d6de6ea0fa
    Merge pull request #12920 from roiLeo/patch-1 Tim van der Meij 2021-01-28 23:53:24 +01:00
  • e4e92d10e8
    Merge pull request #12922 from Snuffleupagus/getTextContent-globalImageCache Tim van der Meij 2021-01-28 23:44:10 +01:00
  • 8805614a03
    Merge pull request #12924 from brendandahl/fix-clone Tim van der Meij 2021-01-28 23:42:12 +01:00
  • 72da2aa166 Ignore globally cached images in PartialEvaluator.getTextContent (PR 11930 follow-up) Jonas Jenwald 2021-01-27 16:56:17 +01:00
  • 52fb5abb0b Fix font data clone error when pdfBug is enabled. Brendan Dahl 2021-01-27 14:38:43 -08:00
  • d52e5b0505
    Merge pull request #12903 from Snuffleupagus/GlobalImageCache-byteSize Tim van der Meij 2021-01-27 22:20:58 +01:00
  • 286271152f
    Merge pull request #12910 from calixteman/bidi Tim van der Meij 2021-01-27 22:09:00 +01:00
  • 7c4d751ea9
    fix(acroforms): pdf path in acroforms example roiLeo 2021-01-27 11:12:36 +01:00
  • 639437d287
    Merge pull request #12911 from calixteman/reg_test Tim van der Meij 2021-01-26 23:45:45 +01:00
  • d850773360
    Merge pull request #12916 from Snuffleupagus/dist-sandbox Tim van der Meij 2021-01-26 23:42:47 +01:00
  • 85a4bc85e7 Include pdf.sandbox.js when building the pdfjs-dist files Jonas Jenwald 2021-01-26 16:34:19 +01:00
  • 465697eb10
    JS - QuickJS sandbox initialization must be the last evaluated string (#12914) calixteman 2021-01-26 05:56:01 -08:00
  • 1ab6d2c604 Improve global image caching for small images (PR 11912 follow-up, issue 12098) Jonas Jenwald 2021-01-25 15:09:11 +01:00
  • 539256c351 Add back dir property in spans in text layer - aims to fix #12909 Calixte Denizet 2021-01-25 22:10:46 +01:00
  • a3f6882b06
    JS -- add support for choice widget (#12826) calixteman 2021-01-25 14:40:57 -08:00
  • 52641e8643 Fix text layer regression tests in using the correct line-height property Calixte Denizet 2021-01-25 23:01:07 +01:00
  • 6249ef517d
    Merge pull request #12901 from timvandermeij/bump-versions Tim van der Meij 2021-01-24 18:53:54 +01:00
  • 7e4709433a
    Bump versions in pdfjs.config Tim van der Meij 2021-01-24 18:49:33 +01:00
  • f2c7338b02
    Merge pull request #12897 from calixteman/12895 v2.7.570 Tim van der Meij 2021-01-24 12:28:24 +01:00
  • 00b4eb2a2c
    Merge pull request #12898 from Snuffleupagus/update-packages Tim van der Meij 2021-01-24 12:26:23 +01:00
  • 12e6d9b81e
    Merge pull request #12899 from Snuffleupagus/eslint-env-es2021 Tim van der Meij 2021-01-24 12:23:39 +01:00
  • eb015ca023 Update the ESLint env to use "es2021" Jonas Jenwald 2021-01-24 11:20:59 +01:00
  • 09442351b8 Update l10n files Jonas Jenwald 2021-01-24 08:43:09 +01:00
  • bc32515507 Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-01-24 08:38:38 +01:00
  • fea6d2fd34 Update npm packages Jonas Jenwald 2021-01-24 08:34:00 +01:00
  • 34d2e72df2 JS - Fix mouse event names - fix issue #12895 Calixte Denizet 2021-01-23 19:09:26 +01:00
  • d4c4f5d4e5
    Merge pull request #12870 from Snuffleupagus/page-advance Tim van der Meij 2021-01-23 19:35:08 +01:00
  • 7102e4a5c3
    Merge pull request #12893 from Snuffleupagus/eslint-no-use-before-define Tim van der Meij 2021-01-23 18:46:36 +01:00
  • 61ceae6b4c Enable, a basic version of, the ESLint no-use-before-define rule Jonas Jenwald 2021-01-23 14:23:06 +01:00
  • 25b84ce84c
    Merge pull request #12828 from dhufnagel/feature/annotation_layer_display_fontsize Tim van der Meij 2021-01-23 16:08:07 +01:00
  • c9a1d8cb2e
    Merge pull request #12891 from Snuffleupagus/DefaultAppearanceEvaluator-fixes Tim van der Meij 2021-01-23 15:46:42 +01:00
  • ef1d33a29e Use slightly less verbose font-names in the "Default appearance" unit-tests Jonas Jenwald 2021-01-23 03:54:10 +01:00
  • 6bcb4e3ad9 Ensure that parseDefaultAppearance won't attempt to access a not yet defined variable (PR 12831 follow-up) Jonas Jenwald 2021-01-23 02:58:36 +01:00
  • c5083cda02 set font size and color on annotation layer Dominik Hufnagel 2021-01-21 22:33:43 +01:00
  • a2b592f4a2 Add previous/next-page functionality that takes scroll/spread-modes into account (issue 11946) Jonas Jenwald 2021-01-15 18:45:12 +01:00
  • 6ffb6b1c0c
    Merge pull request #12885 from Snuffleupagus/worker-tweak-caching Tim van der Meij 2021-01-22 20:24:33 +01:00
  • 25d84e4c40
    Merge pull request #12887 from Snuffleupagus/keep-logical-assignment-operators Tim van der Meij 2021-01-22 20:21:40 +01:00
  • 5b675c7bf7
    Merge pull request #12886 from Snuffleupagus/_getSaveFieldResources-fontName Tim van der Meij 2021-01-22 20:08:59 +01:00
  • 5533148496
    Merge pull request #12890 from Snuffleupagus/cleanup-eslint-off-rules Tim van der Meij 2021-01-22 20:06:17 +01:00
  • 73da906102
    Merge pull request #12888 from Snuffleupagus/stylelint-shorthand-property-no-redundant-values Tim van der Meij 2021-01-22 20:01:45 +01:00
  • 4db7330677 Enable ESLint rules that no longer need to be disabled on a directory/file-basis Jonas Jenwald 2021-01-22 17:38:26 +01:00
  • 38c9f1a37a Enable the Stylelint shorthand-property-no-redundant-values rule Jonas Jenwald 2021-01-22 14:36:02 +01:00
  • 4215534b3e Keep logical assignment operators in MOZCENTRAL/TESTING-builds Jonas Jenwald 2021-01-22 14:06:21 +01:00
  • ca1f58ea42 Use _defaultAppearanceData directly in WidgetAnnotation._getSaveFieldResources (PR 12831 follow-up) Jonas Jenwald 2021-01-22 13:09:15 +01:00
  • 8137c0547d Fix the gStateObj lookup in TranslatedFont._removeType3ColorOperators (PR 12718 follow-up) Jonas Jenwald 2021-01-22 12:27:38 +01:00
  • cfaf23dee2 Simplify the PDFFunctionFactory._localFunctionCache initialization (PR 12034 follow-up) Jonas Jenwald 2021-01-22 12:25:05 +01:00
  • 2cba290361
    Merge pull request #12836 from calixteman/update_buttons Brendan Dahl 2021-01-21 14:00:26 -08:00
  • 1039698697
    Add a parser to get font data from the default appearance (#12831) calixteman 2021-01-21 11:15:31 -08:00
  • 4142001fc2
    Merge pull request #12869 from calixteman/lw Brendan Dahl 2021-01-21 08:31:59 -08:00
  • 9d4bad91e2
    Merge pull request #12878 from Snuffleupagus/worker-compat-checks Tim van der Meij 2021-01-20 21:03:04 +01:00
  • f45ba02fd3
    Merge pull request #12850 from calixteman/missing_cstes Brendan Dahl 2021-01-20 11:33:02 -08:00
  • b4eb55250e Remove redundant compatibility checks, for modern generic builds, in src/core/worker.js Jonas Jenwald 2021-01-20 13:09:56 +01:00
  • a10dc1cb6e
    Merge pull request #12871 from Snuffleupagus/simplify-pdfSidebarNotification Tim van der Meij 2021-01-19 19:09:08 +01:00
  • 5e1e0e03a6
    Merge pull request #12875 from Snuffleupagus/src-display-more-optional-chaining Tim van der Meij 2021-01-19 18:58:01 +01:00
  • 2731dd4b49
    Merge pull request #12874 from Snuffleupagus/docs-less-es5 Tim van der Meij 2021-01-19 18:52:16 +01:00
  • 5520737798 Update the main, and pdfjs-dist, README to also include recent ECMAScript features Jonas Jenwald 2021-01-19 17:41:50 +01:00
  • 298ee5cfbb Replace some ternary operators with optional chaining, and nullish coalescing, in the src/display/-folder Jonas Jenwald 2021-01-19 16:28:47 +01:00
  • abd2346e2a Put less emphasis on "ES5"/"ES6" in the README and other documentation Jonas Jenwald 2021-01-19 12:38:04 +01:00
  • e997f60656 Only display a notification on the sidebarToggle-button, and not the individual view-buttons (PR 7959 follow-up) Jonas Jenwald 2021-01-05 11:37:11 +01:00
  • 9754216c60 Fix zoom issue with too thin lines - aims to fix issue #12868: apply zoom factor to linewidth after setting it to 1. - only apply 1px-width when required - the sign of getSinglePixelWidth is used to know if 1px-width is required Calixte Denizet 2021-01-16 14:05:37 +01:00
  • 172abc02e1
    Merge pull request #12864 from calixteman/6127 Tim van der Meij 2021-01-15 20:54:34 +01:00
  • 0d1b19632d Enforce linewidth to 1px when at least one of scale factor is lower than 1 Calixte Denizet 2021-01-15 11:56:20 +01:00
  • d9df96d299
    Merge pull request #12863 from Snuffleupagus/pr-12812-followup calixteman 2021-01-15 04:13:59 -08:00
  • cf7eb87934 Remove a duplicated reference test (PR 12812 follow-up) Jonas Jenwald 2021-01-15 10:51:48 +01:00
  • 6619f1f3f2
    Merge pull request #12812 from calixteman/too_thin Brendan Dahl 2021-01-14 15:21:44 -08:00
  • db70efa3c6
    Merge pull request #12861 from Snuffleupagus/bug-1671312-ArialNarrow Tim van der Meij 2021-01-14 19:38:29 +01:00
  • 2600e59acb Always re-measure non-embedded ArialNarrow fonts (bug 1671312, PR 12725 follow-up) Jonas Jenwald 2021-01-14 15:34:44 +01:00
  • dcd1589b2c
    Merge pull request #12855 from Snuffleupagus/find-normalization Tim van der Meij 2021-01-12 22:04:10 +01:00
  • 1bcbf69c96
    Merge pull request #12853 from Snuffleupagus/BaseViewer-initializeScriptingEvents Tim van der Meij 2021-01-12 20:56:19 +01:00
  • f1749f03e3 Ensure that PDFViewerApplication.close has a *consistent* return value Jonas Jenwald 2021-01-12 14:29:15 +01:00
  • 13742eb82d Inlude the JS actions for the page when dispatching the "pageopen"-event in the BaseViewer Jonas Jenwald 2021-01-12 13:59:53 +01:00
  • 6dae2677d5 [api-minor] Highlight search results correctly for normalized text (PR 9448) Ross Johnson 2021-01-12 15:21:19 +01:00
  • a882a85446 Fix the initialization/resetting of scripting-related events in the BaseViewer Jonas Jenwald 2021-01-12 13:38:49 +01:00
  • 1de1ae0be6
    Merge pull request #12838 from calixteman/authors calixteman 2021-01-12 02:44:58 -08:00
  • 43d5512f5c [api-minor] Change the "dc:creator" Metadata field to an Array - add scripting support for doc.info.authors - doc.info.metadata is the raw string with xml code Calixte Denizet 2021-01-08 18:40:09 +01:00
  • 8e6bec6e2e JS -- Add few missing constants in global scope - these constants are available in pdfium implementation too - fix error code in aform.js Calixte Denizet 2021-01-11 17:19:24 +01:00
  • 631bada0df
    Merge pull request #12848 from timvandermeij/annotation-horizontal Tim van der Meij 2021-01-10 19:03:40 +01:00
  • 36e6ae5b2f
    Correctly align annotation content in horizontal/spread scrolling modes Tim van der Meij 2021-01-10 16:41:34 +01:00
  • b3dccd66ab Enforce line width to be at least 1px after applied transform * add a comment to explain how minimal linewidth is computed. * when context.linewidth < 1 after transform, firefox and chrome don't render in the same way (issue #12810). * set lineWidth to 1 after transform and before stroking - aims fix issue #12295 - a pixel can be transformed into a rectangle with both heights < 1. A single rescale leads to a rectangle with dim equals to 1 and the other to something greater than 1. * change the way to render rectangle with null dimensions: - right now we rely on the lineWidth set before "re" but it can be set after "re" and before "S" and in this case the rendering will be wrong. - render such rectangles as a single line. Calixte Denizet 2021-01-04 14:25:30 +01:00
  • 666ef6dac0
    Merge pull request #12846 from Snuffleupagus/stylelint-length-zero-no-unit Tim van der Meij 2021-01-10 16:16:41 +01:00
  • 246a6f9d13 Enable the Stylelint length-zero-no-unit rule Jonas Jenwald 2021-01-10 14:02:38 +01:00
  • f224a0eb9f
    Merge pull request #12845 from Snuffleupagus/cleanup-more-CSS-dir Tim van der Meij 2021-01-10 13:53:30 +01:00