Commit Graph

  • 5744dd773d XFA - Don't use system font when a font is not embeded but there is a substitution - always use a font coming from pdf.js when there is one: this way we don't use a system font which could looks wrong. Calixte Denizet 2021-07-03 15:13:51 +02:00
  • 661c60ecc9 [api-minor] Support accessing both the original and modified PDF fingerprint Jonas Jenwald 2021-07-02 16:36:27 +02:00
  • f9d506cf50
    Merge pull request #13658 from Snuffleupagus/cloneValue Tim van der Meij 2021-07-03 13:01:46 +02:00
  • 227d0b0dac
    Merge pull request #13657 from Snuffleupagus/rm-instanceof-Object Tim van der Meij 2021-07-03 12:54:34 +02:00
  • bdf6f733bf Don't attempt to structure clone unsupported types with workers disabled Jonas Jenwald 2021-07-03 10:11:41 +02:00
  • 909ff8e29f Replace instanceof Object with typeof checks Jonas Jenwald 2021-07-03 11:15:13 +02:00
  • f16828be49 XFA - An image can be a stream in the pdf (bug 1718521) - hrefs can be found in catalog > Names > XFAImages Calixte Denizet 2021-07-02 20:05:23 +02:00
  • f7d3b22480 XFA - Improve text layout - support paragraph margins, line height, letter spacing, ... - compute missing dimensions from fields based almost on the dimensions of caption contents. Calixte Denizet 2021-07-02 17:53:27 +02:00
  • d80651e572
    Merge pull request #13598 from calixteman/dhl calixteman 2021-06-30 20:43:07 +02:00
  • a8a5c5f10b
    Merge pull request #13648 from calixteman/xfa_bg calixteman 2021-06-30 18:12:13 +02:00
  • 08e08d5852 XFA - Don't fill when the fill element is not visible (bug 1718735) Calixte Denizet 2021-06-30 17:13:59 +02:00
  • ff440d13e7 XFA - Remove empty pages - it aims to fix #13583; - fix the switch to breakBefore target; - force the layout of an unsplittable element on an empty page; - don't fail when there is horizontal overflow (except in lr-tb); - handle correctly overflow in the same content area (bug 1717805, bug 1717668); - fix a typo in radial gradient first argument. Calixte Denizet 2021-06-21 09:38:50 +02:00
  • 6307349e31
    Merge pull request #13640 from Snuffleupagus/issue-6759 Tim van der Meij 2021-06-29 21:22:34 +02:00
  • d88d9a2574
    Merge pull request #13616 from marco-c/1773_reftests calixteman 2021-06-29 17:28:10 +02:00
  • db15205e2c Add PDFs from #1773 to the reftests Marco Castelluccio 2021-06-23 12:58:26 +02:00
  • f35e4cc9ab
    Merge pull request #13645 from calixteman/bug1718241 calixteman 2021-06-28 23:46:59 +02:00
  • 04dc902933
    Merge pull request #13644 from calixteman/xfa_missing_fonts calixteman 2021-06-28 23:46:09 +02:00
  • 70bb672dcd XFA - Support non-embedded fonts without a Widths entry - some pdf use some fonts which are not embedded or they don't have any width array or don't have any css info (e.g. for standard fonts or Arial). - so add widths arrays for Liberation fonts in order to compute the ones for other fonts in using scale factors array. Calixte Denizet 2021-06-28 19:03:47 +02:00
  • 1de133a7c9 XFA - Choice list has no selected value by default Calixte Denizet 2021-06-28 22:10:26 +02:00
  • 3f02a46570
    Merge pull request #13641 from calixteman/image_dim calixteman 2021-06-28 21:55:25 +02:00
  • 71d17b0cc4 XFA - Implement aspect property on image element - it aims to fix issue #13634; - move some img-related functions in test/drivers.js in order to have images in xfa reftests. Calixte Denizet 2021-06-27 17:17:44 +02:00
  • ff3a5382ee
    Merge pull request #13635 from calixteman/1718037 calixteman 2021-06-28 17:51:46 +02:00
  • b261446981 XFA - Fix width of a container with lr-tb layout (bug 1718037) Calixte Denizet 2021-06-26 23:21:43 +02:00
  • 03dff1c5f5
    Merge pull request #13639 from calixteman/old_break calixteman 2021-06-28 17:44:03 +02:00
  • 191db4145e
    Merge pull request #13642 from calixteman/quotes calixteman 2021-06-28 13:25:47 +02:00
  • 677332aa7b XFA - Remove quotes of font name in xhtml Calixte Denizet 2021-06-27 18:05:05 +02:00
  • 273d8cb746 Add non-PRODUCTION/TESTING overflow asserts to various string helper-functions (issue 6759) Jonas Jenwald 2021-06-27 15:19:02 +02:00
  • 257de0e8c5 XFA - Replace deprecated break element (bug 1718053) - the break element has been deprecated in XFA 2.4 but some old documents can use it, so replace it with one (or more) of its possible substitutions: - breakBefore; - breakAfter; - overflow. Calixte Denizet 2021-06-27 15:02:53 +02:00
  • d644b66c72
    Merge pull request #13638 from Snuffleupagus/api-tweak-docs Tim van der Meij 2021-06-27 12:47:57 +02:00
  • 4a8466cdac
    Merge pull request #13637 from Snuffleupagus/update-packages Tim van der Meij 2021-06-27 12:42:54 +02:00
  • d02146b13b Add a OnProgressParameters typedef to reduce (some) duplication in src/display/api.js Jonas Jenwald 2021-06-27 11:50:52 +02:00
  • ea4b162328 Use the RefProxy typedef in more JSDoc comments in src/display/api.js Jonas Jenwald 2021-06-27 11:34:59 +02:00
  • 0326c05db0 Update l10n files Jonas Jenwald 2021-06-27 10:31:06 +02:00
  • b146c597b0 Fix (some) vulnerabilities reported by npm audit Jonas Jenwald 2021-06-27 10:28:37 +02:00
  • e79ed27f2f Update the es-module-shims package to the latest version Jonas Jenwald 2021-06-27 10:27:02 +02:00
  • f03d5b3ee7 Update npm packages Jonas Jenwald 2021-06-27 10:25:40 +02:00
  • d7f8a0e9b9
    Merge pull request #13628 from Snuffleupagus/issue-13626 Tim van der Meij 2021-06-26 14:17:11 +02:00
  • 82660296d6
    Merge pull request #13600 from Snuffleupagus/scrollMatchIntoView-selectedLeft Tim van der Meij 2021-06-26 14:04:20 +02:00
  • 9de0916fd4
    Merge pull request #13627 from calixteman/save calixteman 2021-06-25 20:12:09 +02:00
  • 429ffdcd2f XFA - Save filled data in the pdf when downloading the file (Bug 1716288) - when binding (after parsing) we get a map between some template nodes and some data nodes; - so set user data in input handlers in using data node uids in the annotation storage; - to save the form, just put the value we have in the storage in the correct data nodes, serialize the xml as a string and then write the string at the end of the pdf using src/core/writer.js; - fix few bugs around data bindings: - the "Off" issue in Bug 1716980. Calixte Denizet 2021-06-25 14:31:55 +02:00
  • 50edd5da63 Suppress OTS warnings about the caretOffset in the hhea-table Jonas Jenwald 2021-06-25 16:53:36 +02:00
  • 185be678ec Check that TrueType (3, 0) cmap tables, for symbolic fonts, are sorted correctly (issue 13626) Jonas Jenwald 2021-06-25 15:51:08 +02:00
  • dc7faa213e
    Merge pull request #13624 from calixteman/center Brendan Dahl 2021-06-24 09:07:39 -07:00
  • 57b6746bab XFA - Take into account text position in caption Calixte Denizet 2021-06-24 10:25:41 +02:00
  • d7fdb72a3f
    Merge pull request #13619 from calixteman/bg Brendan Dahl 2021-06-23 16:21:28 -07:00
  • ad28622595
    Merge pull request #13622 from calixteman/no_stretch_lrtb Brendan Dahl 2021-06-23 15:06:21 -07:00
  • f4f00a9bc6
    Merge pull request #13618 from calixteman/bind_root Brendan Dahl 2021-06-23 13:14:12 -07:00
  • 1d0e83e1bd XFA - No container stretching with lr-tb layout Calixte Denizet 2021-06-23 22:03:07 +02:00
  • f74562b19c
    Merge pull request #13613 from Snuffleupagus/xfa-printing-tweaks Tim van der Meij 2021-06-23 21:56:29 +02:00
  • ad4b2ce021
    Merge pull request #13612 from Snuffleupagus/issue-13610 Tim van der Meij 2021-06-23 21:49:02 +02:00
  • c115be27b6
    Merge pull request #13617 from Snuffleupagus/reset-externalLinkEnabled Tim van der Meij 2021-06-23 21:42:27 +02:00
  • b836616667 XFA - Always bind root subform on root data - it partially fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1717805 (on the data side at least but there is still a layout issue). Calixte Denizet 2021-06-23 17:41:59 +02:00
  • f168998d93 XFA - Add back empty subforms (which can have a background) Calixte Denizet 2021-06-23 19:42:36 +02:00
  • 2bae399422
    Merge pull request #13614 from calixteman/line_height calixteman 2021-06-23 14:57:27 +02:00
  • d959cb824d Reset the IPDFLinkService.externalLinkEnabled property on document closing Jonas Jenwald 2021-06-23 14:00:54 +02:00
  • e82446fa5a XFA - Get line height from the font - when the CSS line-height property is set to 'normal' then the value depends of the user agent. So use a line height based on the font itself and if for any reasons this value is not available use 1.2 as default. - it's a partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1717681. Calixte Denizet 2021-06-23 11:10:20 +02:00
  • 87be43c193 [api-minor] Add a new getXfaPageViewport helper function to support printing Jonas Jenwald 2021-06-18 12:31:58 +02:00
  • 45c1390c42 Switch the order of the "display"/"print" intent handling in XfaLayerBuilder.render Jonas Jenwald 2021-06-18 11:59:50 +02:00
  • eb94d71b71 Move the getXfaHtmlForPrinting helper function to its own file (PR 13411 follow-up) Jonas Jenwald 2021-06-18 11:48:29 +02:00
  • 9441245320
    Merge pull request #13606 from Snuffleupagus/issue-13605 Jonas Jenwald 2021-06-22 18:53:10 +02:00
  • b1c9d8c78d
    Merge pull request #13594 from calixteman/xfa_add_margin calixteman 2021-06-22 17:47:18 +02:00
  • 6467907318 Support corrupt documents with *empty* Name-entries (issue 13610) Jonas Jenwald 2021-06-22 15:44:52 +02:00
  • 6163cd015b
    Merge pull request #13609 from Snuffleupagus/xfaLayer-text-align Jonas Jenwald 2021-06-22 14:54:21 +02:00
  • d301ec7d42 Correctly align the xfaLayer content with horizontal scrolling/spread modes Jonas Jenwald 2021-06-22 12:56:46 +02:00
  • aca102a35e XFA - Add margins if needed after having layout some text Calixte Denizet 2021-06-20 17:39:54 +02:00
  • eb755d098e
    Merge pull request #13608 from mozilla/dependabot/npm_and_yarn/color-string-1.5.5 Jonas Jenwald 2021-06-22 10:08:19 +02:00
  • f40c59c7b4
    Bump color-string from 1.5.3 to 1.5.5 dependabot[bot] 2021-06-22 07:59:39 +00:00
  • b886b6c995
    Merge pull request #13604 from calixteman/xfa_proto_propr calixteman 2021-06-22 09:58:29 +02:00
  • e84b3bbf6e
    Merge pull request #13592 from calixteman/xfa_print_only calixteman 2021-06-21 21:02:53 +02:00
  • fbf5f8487d
    Merge pull request #13603 from calixteman/revert calixteman 2021-06-21 19:11:44 +02:00
  • daa563ae81 Correctly align the textLayer content with horizontal/spread scrolling modes (issue 13605) Jonas Jenwald 2021-06-21 18:53:25 +02:00
  • 72c32b3498 XFA - A prototype can have a property which needs itself to resolve a proto Calixte Denizet 2021-06-21 17:26:29 +02:00
  • 56a75f8b26 Revert "Revert "XFA - Fix the way to select page on breaking"" - and fix the error which caused the backout: add an $extra property when creating html. - switch to next content area when breaking on page area. calixteman 2021-06-21 16:02:33 +02:00
  • 277f351291
    Merge pull request #13601 from mozilla/revert-13573-bug1716838 calixteman 2021-06-21 15:45:22 +02:00
  • a9385bbb52
    Revert "XFA - Fix the way to select page on breaking" calixteman 2021-06-21 15:45:04 +02:00
  • da19997781
    Merge pull request #13573 from calixteman/bug1716838 calixteman 2021-06-21 15:06:03 +02:00
  • 7aea8faa34 XFA - Fix the way to select page on breaking - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1716838. - some fonts in the pdf in the bug where bold when they shouldn't so write the font properties in the html to avoid to use some wrong inherited ones. Calixte Denizet 2021-06-17 10:58:32 +02:00
  • 34acf29403
    Merge pull request #13593 from calixteman/xfa_rect_border calixteman 2021-06-21 12:24:23 +02:00
  • b42120bdb0 Take the position of the selected element into account when scrolling matches (issue 13596) Jonas Jenwald 2021-06-21 10:17:55 +02:00
  • d99a7c070f XFA - Don't display print-only elements - partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1716980. Calixte Denizet 2021-06-20 15:38:58 +02:00
  • 223b60f4e8
    Merge pull request #13595 from calixteman/xfa_readonly calixteman 2021-06-21 09:58:54 +02:00
  • 7cb92a64b1 XFA - Add support for access property - it's a partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1716816. Calixte Denizet 2021-06-20 18:56:14 +02:00
  • 2e6d3d6b00
    Merge pull request #13591 from calixteman/xfa_default_font calixteman 2021-06-21 09:28:59 +02:00
  • d76f11a0ce XFA - Don't display invisible rectangle borders - partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1716980. Calixte Denizet 2021-06-20 15:45:54 +02:00
  • 7cdbc98716 XFA - Match font family correctly - partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1716980; - some pdf can contain an invalid font family (e.g. 'Windings 3') so in this case remove the space; - the font family in typeface attribute doesn't always match the one defined in the FontDescriptor dictionary. Calixte Denizet 2021-06-20 14:03:59 +02:00
  • bdfcdd6f83
    Merge pull request #13589 from Snuffleupagus/issue-13585 Tim van der Meij 2021-06-20 12:31:39 +02:00
  • adafb2c82a
    Merge pull request #13590 from Snuffleupagus/issue-8558 Tim van der Meij 2021-06-20 12:27:13 +02:00
  • 2ffc921163 Stop encoding the value in the DOMElement.setAttribute method (issue 8558) Jonas Jenwald 2021-06-20 11:55:24 +02:00
  • c4334dcfe7 Allow using the standard font data for non-Type1 fonts (issue 13585, PR 12726 follow-up) Jonas Jenwald 2021-06-20 11:06:35 +02:00
  • 94ca66f528
    Merge pull request #13588 from Snuffleupagus/viewer-component-types Tim van der Meij 2021-06-19 19:02:08 +02:00
  • b9e8a3ce47
    Merge pull request #13587 from Snuffleupagus/useSystemFonts-default Tim van der Meij 2021-06-19 18:55:17 +02:00
  • fdf2c59b8f Add a (basic) TypeScript definitions for the viewer components (issue 13267) Jonas Jenwald 2021-06-19 16:24:34 +02:00
  • d9ed14a2f5 Set the default value of useSystemFonts correctly, depending on disableFontFace, in the API (PR 13516 follow-up) Jonas Jenwald 2021-06-19 13:34:19 +02:00
  • 248efb16a7
    Merge pull request #13577 from Snuffleupagus/rm-PDFScriptingManager._pageEventsReady Tim van der Meij 2021-06-18 21:06:00 +02:00
  • 5d251a3a3e
    Merge pull request #13566 from calixteman/layout4 Brendan Dahl 2021-06-17 13:23:28 -07:00
  • 5db7a3cc88 Ensure that PDFScriptingManager.setDocument handles failure when initializing the scripting-factory Jonas Jenwald 2021-06-17 18:42:15 +02:00
  • 6dc5dd194f Remove the internal PDFScriptingManager._pageEventsReady boolean (PR 13074 follow-up) Jonas Jenwald 2021-06-17 18:01:10 +02:00
  • 3264d409dd
    Merge pull request #13576 from calixteman/really_fix_text_stuff calixteman 2021-06-17 17:47:18 +02:00
  • e65b41f891 XFA - When no fonts in the pdf just use font size as width when measuring text Calixte Denizet 2021-06-17 16:50:56 +02:00
  • df08b1548b XFA - Fix layout issues - PR #13554 is buggy, so this patch aims to fix bugs. - check if a component fits into its parent in taking into account the parent layout. - introduce method isSplittable for template nodes to know if a component can be splitted in case of overflow. Calixte Denizet 2021-06-16 16:02:41 +02:00