Commit Graph

  • 326226df45
    Merge pull request #13575 from calixteman/fixlast calixteman 2021-06-17 15:56:27 +02:00
  • 226c228c2a XFA - Fix reftest for xfa_issue13500 Calixte Denizet 2021-06-17 15:48:13 +02:00
  • b300aba078
    Merge pull request #13560 from calixteman/xfa_font_widths calixteman 2021-06-17 15:05:57 +02:00
  • 8eeb7ab4a3 XFA - Add the possibily to layout and measure text - some containers doesn't always have their 2 dimensions and those dimensions re based on contents; - so in order to measure text, we must get the glyph widths (for the xfa fonts) before starting the layout; - implement a word-wrap algorithm; - handle font change during text layout. Calixte Denizet 2021-06-14 19:16:42 +02:00
  • 335d4cb2fc
    Merge pull request #13570 from calixteman/xfa_field calixteman 2021-06-17 09:09:59 +02:00
  • d6deb95f11
    Merge pull request #13565 from brendandahl/fix-pattern-mask Brendan Dahl 2021-06-16 20:07:57 -07:00
  • 5efaaa0fea Fix how patterns are applied to image mask objects. Brendan Dahl 2021-06-14 21:09:45 -07:00
  • 793a0156ce XFA - By default a text ui has only one line when in a field element - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1716809. Calixte Denizet 2021-06-16 20:15:24 +02:00
  • 473322298f
    Merge pull request #13569 from calixteman/visibility calixteman 2021-06-16 18:55:44 +02:00
  • 143d190a61 XFA - Container wrapper must take the visibility of the wrapped content Calixte Denizet 2021-06-16 17:29:02 +02:00
  • 7fa61c062c
    Merge pull request #13393 from Snuffleupagus/adjustToUnicode-hasIncludedToUnicodeMap Jonas Jenwald 2021-06-16 17:06:17 +02:00
  • f9a0568f96
    Merge pull request #13554 from calixteman/layout3 Brendan Dahl 2021-06-15 09:16:19 -07:00
  • 697c58e6e8
    Merge pull request #13563 from Snuffleupagus/eslint-plugin-json Jonas Jenwald 2021-06-15 12:38:42 +02:00
  • 0ea5792c86 XFA - Add support for overflow element - and fix few bugs: - avoid infinite loop when layout the document; - avoid confusion between break and layout failure; - don't add margin width in tb layout when getting available space. Calixte Denizet 2021-06-13 18:57:51 +02:00
  • 1cfaf07b82 Add basic linting of JSON files using eslint-plugin-json Jonas Jenwald 2021-06-15 11:59:47 +02:00
  • 229a49b9b9 Re-factor the fallbackToUnicode functionality (PR 9192 follow-up) Jonas Jenwald 2021-05-18 13:45:19 +02:00
  • 7190bc23a8 Remove unnecessary in checks of Arrays, when building the charCodeToGlyphId for TrueType fonts Jonas Jenwald 2021-05-18 09:04:14 +02:00
  • edc38de37a Convert PartialEvaluator.buildToUnicode to an async method Jonas Jenwald 2021-05-17 15:40:23 +02:00
  • 3660aaac85 Tweak adjustToUnicode to allow extending a built-in /ToUnicode map Jonas Jenwald 2021-05-17 14:34:08 +02:00
  • 246d565e3b
    Merge pull request #13559 from calixteman/maxlength calixteman 2021-06-14 14:21:04 +02:00
  • d89c429d78 XFA - Handle maxChars property for text fields - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1716294. Calixte Denizet 2021-06-14 13:07:00 +02:00
  • 9d081d09c7
    Merge pull request #13557 from calixteman/issue13556 calixteman 2021-06-14 12:17:45 +02:00
  • 150fa3d96e XFA - Fix error when creating a new data node - fix for issue #13556; - value in a field can be empty. Calixte Denizet 2021-06-14 11:33:03 +02:00
  • a4e8f3bdee
    Merge pull request #13555 from calixteman/value calixteman 2021-06-14 10:53:17 +02:00
  • 088db47849 XFA - Value in field can be html Calixte Denizet 2021-06-13 19:50:28 +02:00
  • 96c103462a
    Merge pull request #13548 from calixteman/default_fill calixteman 2021-06-13 14:11:22 +02:00
  • e1a5339961
    Merge pull request #13552 from Snuffleupagus/update-packages Tim van der Meij 2021-06-13 13:31:54 +02:00
  • 59f72bbde1 Update l10n files Jonas Jenwald 2021-06-13 10:08:45 +02:00
  • 014148b28a Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-06-13 10:03:08 +02:00
  • 99dc7af590 Update npm packages Jonas Jenwald 2021-06-13 09:59:44 +02:00
  • a4546e83c3
    Merge pull request #13549 from Snuffleupagus/rm-isFetchSupported Tim van der Meij 2021-06-12 11:47:04 +02:00
  • ddea90b8f6 Remove the isFetchSupported function since the Fetch API is available in all supported browsers Jonas Jenwald 2021-06-11 22:53:09 +02:00
  • 5a4e06af2d
    Merge pull request #13547 from calixteman/cerfa Brendan Dahl 2021-06-11 13:09:43 -07:00
  • c7c59feeaf
    Merge pull request #13546 from Snuffleupagus/base_factory-tweaks Tim van der Meij 2021-06-11 21:19:11 +02:00
  • 694b14c047 XFA - Default fill color for rectangle is transparent Calixte Denizet 2021-06-11 18:03:19 +02:00
  • 2dc22394e7
    Merge pull request #13542 from calixteman/center_radio calixteman 2021-06-11 17:55:55 +02:00
  • d1e945998b XFA - Handle correctly subformSet - it aims to avoid to loop forever when opening pdf in #13213; - the idea is to consider subformSet as inexistent when running in the tree. So if we've subformA > subformSet > subformB then subformB will be visited as a direct child of subformA. Calixte Denizet 2021-06-11 17:49:13 +02:00
  • 7b17dc8bfd Re-factor the fetchData helper function, in src/display/display_utils.js to be asynchronous Jonas Jenwald 2021-06-11 17:12:55 +02:00
  • b05a22d01b Re-factor the DOMSVGFactory to extend an abstract base class Jonas Jenwald 2021-06-11 16:50:57 +02:00
  • d10b850916 Move most functionality in the create methods into the BaseCanvasFactory Jonas Jenwald 2021-06-11 16:35:42 +02:00
  • da4916e3c1 XFA - Center vertically radio without caption - and fix intent value which is used to name the radio button group. Calixte Denizet 2021-06-11 13:24:38 +02:00
  • 7b4fa0a038
    Merge pull request #13540 from calixteman/13536 calixteman 2021-06-11 13:12:26 +02:00
  • 367d1ad137 XFA - Return html element for the different possible value - it aims to fix #13536. Calixte Denizet 2021-06-11 09:58:56 +02:00
  • 950dcc7e9f
    Merge pull request #13539 from calixteman/outline calixteman 2021-06-11 09:53:03 +02:00
  • 897a679723 XFA - Don't show outline on focused textfields Calixte Denizet 2021-06-11 09:25:14 +02:00
  • a3b0596cf2
    Merge pull request #13534 from calixteman/missing_page Brendan Dahl 2021-06-10 13:17:20 -07:00
  • 02c03795f3
    Merge pull request #13532 from calixteman/radio Brendan Dahl 2021-06-10 12:30:49 -07:00
  • 5bcba783cf
    Merge pull request #13530 from Snuffleupagus/DOMMatrix-Node Jonas Jenwald 2021-06-10 21:15:05 +02:00
  • 3bd24d8d5a Throw errors directly, rather than using assert, in the DOMSVGFactory Jonas Jenwald 2021-06-10 11:05:37 +02:00
  • 26011c65f4 Add a DOMMatrix polyfill for Node.js environments (PR 13361 follow-up) Jonas Jenwald 2021-06-10 10:50:35 +02:00
  • d7d53e7c6c XFA - Flush contents when breakBefore target is 'auto' - some page can be missed in the final document because of that (see pdf in the test case which has 4 pages (when only 3 are rendered right now) Calixte Denizet 2021-06-10 17:00:27 +02:00
  • 58633ab9fd XFA - Give all the available space to the caption in case of checkButton - a checkbox or radio doesn't have to be rescaled when the container is large so give the extra space to the caption to avoid some word wrapping. - when the caption is on the right, then put ui on the left as first element and so remove flex:row-reverse stuff. Calixte Denizet 2021-06-10 15:30:19 +02:00
  • cbcf0f7d1e
    Merge pull request #13529 from Snuffleupagus/bundle-Liberation-license Jonas Jenwald 2021-06-10 10:30:52 +02:00
  • 8f3f76f8f6 [gulpfile.js] Reduce unnecessary duplication when bundling CMap/StandardFont files Jonas Jenwald 2021-06-09 23:50:50 +02:00
  • 16d9fa1bf1 Bundle the license-file for the Liberation fonts in the builds (PR 13517 follow-up) Jonas Jenwald 2021-06-09 23:47:18 +02:00
  • c4cb71b68d
    Merge pull request #13528 from calixteman/inline Brendan Dahl 2021-06-09 13:44:31 -07:00
  • 3bd936709c XFA - Handle caption with inline placement as left one - it's just a temporary workaround to unblock release in Firefox. Calixte Denizet 2021-06-09 22:13:43 +02:00
  • d333af7848
    Merge pull request #13527 from calixteman/bind_inf_loop Brendan Dahl 2021-06-09 12:37:29 -07:00
  • aa2712744d
    Merge pull request #13502 from calixteman/contentarea Brendan Dahl 2021-06-09 12:36:21 -07:00
  • a5233f47f2
    Merge pull request #13516 from Snuffleupagus/standard-fonts-disableFontFace Tim van der Meij 2021-06-09 21:35:37 +02:00
  • 69477bfb06 Always use standard font data, with disableFontFace set in the API (PR 12726 follow-up) Jonas Jenwald 2021-06-08 17:40:32 +02:00
  • 2a65455c71
    Merge pull request #13525 from Snuffleupagus/api-conditional-Factory Tim van der Meij 2021-06-09 21:15:39 +02:00
  • 2a7827a7c6
    Merge pull request #13515 from Snuffleupagus/standardFontDataCache Tim van der Meij 2021-06-09 21:06:01 +02:00
  • cddc1d869d XFA - Avoid infinite loop when creating some nodes in data Calixte Denizet 2021-06-09 18:56:16 +02:00
  • a01c599247 Cache the "raw" standard font data in the worker-thread (PR 12726 follow-up) Jonas Jenwald 2021-06-08 13:58:52 +02:00
  • 6d88d8cdaa
    Merge pull request #13517 from calixteman/liberation calixteman 2021-06-09 18:19:07 +02:00
  • 63bde1fcfe
    Merge pull request #13524 from calixteman/print_select calixteman 2021-06-09 16:56:39 +02:00
  • 34a2fa72c7 XFA - Add Liberation-Sans font as a substitution for some missing fonts - Some js files contain scale factors for each glyph in order to rescale Liberation to have a final font with the correct width. - A lot of XFA have some containers where their dimensions are based on their text content, so using default font from browser can lead to an almost unreadable pdf. Calixte Denizet 2021-06-08 20:50:31 +02:00
  • 82784e8e60 XFA - Don't print arrow in select Calixte Denizet 2021-06-09 15:37:15 +02:00
  • f2b9f0d6ea
    Merge pull request #13495 from calixteman/draws calixteman 2021-06-09 16:43:51 +02:00
  • fd1110adb4 Add the possibility to rescale each glyph in a font - a lot of xfa files are using Myriad pro or Arial fonts without embedding them and some containers have some dimensions based on those font metrics. So not having the exact same font leads to a wrong display. - since it's pretty hard to find a replacement font with the exact same metrics, this patch gives the possibility to read glyf table, rescale each glyph and then write a new table. - so once PR #12726 is merged we could rescale for example Helvetica to replace Myriad Pro. Calixte Denizet 2021-05-10 11:54:38 +02:00
  • 2f8e2548f2 Don't initialize CMapReaderFactory/StandardFontDataFactory when the useWorkerFetch API option is set Jonas Jenwald 2021-06-09 14:01:27 +02:00
  • 312326991f [api-minor] Set the disableFontFace fallback value directly in the API Jonas Jenwald 2021-06-09 13:56:31 +02:00
  • 1f6345b6c2 XFA - Display rectangle, line and arc Calixte Denizet 2021-06-04 20:10:35 +02:00
  • 1486608f32 XFA - contentarea must be on top of the other containers in a pageArea Calixte Denizet 2021-06-06 16:37:21 +02:00
  • b4c96f3bc8
    Merge pull request #13521 from Snuffleupagus/issue-13518 calixteman 2021-06-09 15:28:07 +02:00
  • f716de7a2d [XFA] Use align-items: flex-start; to improve browser compatibility (issue 13518) Jonas Jenwald 2021-06-09 08:17:36 +02:00
  • ae531e5e23
    Merge pull request #13514 from Snuffleupagus/base_factory Jonas Jenwald 2021-06-08 22:43:16 +02:00
  • d995f90183 Fetch binary CMap data in the worker-thread, when useWorkerFetch is set Jonas Jenwald 2021-06-08 12:02:26 +02:00
  • 248113bbf0 Move BaseCanvasFactory, BaseCMapReaderFactory, and BaseStandardFontDataFactory to their own file Jonas Jenwald 2021-06-07 11:45:16 +02:00
  • 2a6111044e
    Merge pull request #13479 from calixteman/margin Brendan Dahl 2021-06-08 12:06:40 -07:00
  • cfa727474e XFA - Fix layout issues (again) - some elements weren't displayed because their rotation angle was not taken into account; - fix box model (XFA concept): - remove use of outline; - position correctly border which isn't part of box dimensions; - fix margins issues (see issue #13474). - move border on button instead of having it on wrapping div; Calixte Denizet 2021-06-02 19:14:41 +02:00
  • e8fe0711ee
    Merge pull request #13506 from calixteman/xfa_reftest Jonas Jenwald 2021-06-08 14:47:49 +02:00
  • d639a27557
    Merge pull request #13513 from mozilla/dependabot/npm_and_yarn/trim-newlines-3.0.1 Jonas Jenwald 2021-06-08 10:45:30 +02:00
  • 63caa101f8 XFA - Add support for reftests Calixte Denizet 2021-06-07 15:20:29 +02:00
  • 0fad999fc9
    Bump trim-newlines from 3.0.0 to 3.0.1 dependabot[bot] 2021-06-08 08:11:20 +00:00
  • e7dc822e74
    Merge pull request #12726 from brendandahl/standard-fonts Jonas Jenwald 2021-06-08 10:09:40 +02:00
  • 4c1dd47e65 Include and use the 14 standard fonts files. Brendan Dahl 2020-12-10 17:32:18 -08:00
  • 8b4acb4e36
    Merge pull request #13501 from calixteman/13500 calixteman 2021-06-07 11:27:49 +02:00
  • e0abf87bc3
    Merge pull request #13505 from Snuffleupagus/createMatrix-DOMSVGFactory Jonas Jenwald 2021-06-07 11:16:07 +02:00
  • 5dc7f4ade8 XFA - CDATA can be xml so parse it when required Calixte Denizet 2021-06-06 16:28:22 +02:00
  • 1775d5eeb7
    Merge pull request #13503 from calixteman/nodata calixteman 2021-06-07 10:37:14 +02:00
  • 9e632ee323 Use the DOMSVGFactory, rather than manually creating the SVG-element, in createMatrix (PR 13361 follow-up) Jonas Jenwald 2021-06-07 10:07:19 +02:00
  • 112645ea3d XFA - Don't bind a form node with an empty value when the data node doesn't exist Calixte Denizet 2021-06-06 17:59:01 +02:00
  • 2b63d97b9d
    Merge pull request #13461 from Snuffleupagus/issue-6605 Tim van der Meij 2021-06-06 14:37:52 +02:00
  • 7d834396e4
    Merge pull request #13498 from Snuffleupagus/issue-12996 Tim van der Meij 2021-06-06 14:31:35 +02:00
  • 04ab4bd406 Normalize the coordinates used in SVGGraphics._makeTilingPattern (issue 12996) Jonas Jenwald 2021-06-05 09:02:38 +02:00
  • 1dd01b8506
    Merge pull request #13494 from brendandahl/stepper-show-text Jonas Jenwald 2021-06-05 08:37:11 +02:00
  • eefc94ceb7 Ensure that we fully load Type3 fonts in PartialEvaluator.getTextContent Jonas Jenwald 2021-05-29 20:01:52 +02:00
  • 20770cb06a Improve text-selection for Type3 fonts with empty /FontBBox-entries (issue 6605) Jonas Jenwald 2021-05-29 18:06:49 +02:00