Commit Graph

  • 4b8496e70f
    Merge pull request #14138 from catherinemds/await/async-issue Jonas Jenwald 2021-10-14 21:02:47 +02:00
  • 47f60a7f22 Convert examples/learning/helloworld.html to await/async Catherine 2021-10-14 02:12:02 -04:00
  • 9f9f07613f
    Merge pull request #14134 from janekotovich/convert_pdf2png_to_async Jonas Jenwald 2021-10-14 13:11:51 +02:00
  • 37d90ec378 Convert examples/node/pdf2png/pdf2png.js to await/async Jane-Kotovich 2021-10-14 13:26:10 +10:00
  • 08e2427f9c Ensure that pre-rendering works correctly with spreadModes at higher zoom levels Jonas Jenwald 2021-10-13 15:42:20 +02:00
  • f6d9d91965
    Merge pull request #14116 from Snuffleupagus/api-more-optional-chaining Tim van der Meij 2021-10-13 19:38:03 +02:00
  • 29fd87be57
    Merge pull request #14118 from adventhp/cmap-format-2 Jonas Jenwald 2021-10-13 15:15:46 +02:00
  • 586295fad6 Implement TrueType character map "format 2" (fixes #14117) Jay Berkenbilt 2021-10-12 18:24:18 -04:00
  • e1a2e916e8 Move PDFSinglePageViewer into the web/pdf_viewer.js file Jonas Jenwald 2021-10-09 15:37:54 +02:00
  • 511458fbbc Add a new Page scrolling mode (issue 2638, 8952, 10907) Jonas Jenwald 2021-10-07 14:04:41 +02:00
  • 8fc9c7e41c Use even more optional chaining in the src/display/api.js file Jonas Jenwald 2021-10-12 12:03:45 +02:00
  • 3945965605
    Merge pull request #14108 from Snuffleupagus/issue-14107 Tim van der Meij 2021-10-10 15:29:54 +02:00
  • 8721557a08 For Annotations that define a closed area, make all of it toggle the PopupAnnotation (issue 14107) Jonas Jenwald 2021-10-07 20:39:10 +02:00
  • 56e3ef68d4
    Merge pull request #14106 from calixteman/names Tim van der Meij 2021-10-09 14:29:10 +02:00
  • 63370ff12f
    Merge pull request #14111 from Snuffleupagus/bug-1734802 Tim van der Meij 2021-10-09 14:25:25 +02:00
  • 69a97bcba7 Take the /CIDToGIDMap data into account when computing the hash, in PartialEvaluator.preEvaluateFont, for composite fonts (bug 1734802) Jonas Jenwald 2021-10-08 12:21:26 +02:00
  • f384ad2356 Empty name is allowed in ISO 32000 - the exact sentence from the spec: "The token SOLIDUS (a slash followed by no regular characters) introduces a unique valid name defined by the empty sequence of characters." - so just remove the warning. Calixte Denizet 2021-10-06 20:50:33 +02:00
  • da8df646f5
    Merge pull request #14101 from Snuffleupagus/comb-regression Jonas Jenwald 2021-10-06 09:44:28 +02:00
  • 8010181078 [Regression] Fix comb fields scrolling when the last character is entered (PR 14049 follow-up) Jonas Jenwald 2021-10-05 09:26:43 +02:00
  • f5b79be0b7
    Merge pull request #13948 from Snuffleupagus/structuredClone Tim van der Meij 2021-10-03 13:19:36 +02:00
  • b9a2c4a817
    Merge pull request #14099 from Snuffleupagus/update-packages Tim van der Meij 2021-10-03 13:14:53 +02:00
  • d49b1bf2ee Use the native structuredClone implementation when it's available Jonas Jenwald 2021-08-30 18:20:19 +02:00
  • 65118bc04d Update l10n files Jonas Jenwald 2021-10-03 08:33:21 +02:00
  • de18c35c9b Update the es-module-shims package to the latest version Jonas Jenwald 2021-10-03 08:29:32 +02:00
  • ff271f2cff Update npm packages Jonas Jenwald 2021-10-03 08:21:01 +02:00
  • a474d6c30f
    Merge pull request #14097 from timvandermeij/bump Tim van der Meij 2021-10-02 15:00:59 +02:00
  • 9e3e609b8e
    Bump versions in pdfjs.config Tim van der Meij 2021-10-02 14:56:14 +02:00
  • dedff3c982
    Merge pull request #14096 from Snuffleupagus/spreadMode-preRender v2.11.338 Tim van der Meij 2021-10-02 12:54:19 +02:00
  • 7beb67af7b
    Merge pull request #14092 from Snuffleupagus/xfa-addLinkAttributes Tim van der Meij 2021-10-02 12:39:10 +02:00
  • 8cb6efec2d [api-minor] Add a wrapper around the addLinkAttributes-function, in the API, to the PDFLinkService implementations Jonas Jenwald 2021-09-30 13:30:55 +02:00
  • e4794a678a Pre-render *one* additional page when spreadModes are enabled Jonas Jenwald 2021-10-02 11:43:58 +02:00
  • fb6c807ba2 Reduce unnecessary duplication in PDFRenderingQueue.getHighestPriority Jonas Jenwald 2021-10-02 11:24:29 +02:00
  • bb9c905c5d Ensure that various URL-related options are applied in the xfaLayer too Jonas Jenwald 2021-09-30 10:40:21 +02:00
  • 284d259054
    Merge pull request #14057 from Snuffleupagus/bug-920426 Jonas Jenwald 2021-10-01 23:22:25 +02:00
  • d588f5f961
    Merge pull request #14095 from Snuffleupagus/annotationLayer-rm-forEach Jonas Jenwald 2021-10-01 09:55:14 +02:00
  • 67a642c826 Replace a couple of Array.prototype.forEach-invocations with for..of instead Jonas Jenwald 2021-10-01 09:06:17 +02:00
  • 09361a4bb4
    Merge pull request #14083 from calixteman/reset calixteman 2021-09-30 13:22:09 -07:00
  • aecbd7cd89 AcroForm: Add support for ResetForm action - it aims to fix #12721. - Thanks to PR #14023, we've now the fieldObjects in the annotation layer so we can easily map fields names on their id if needed. - Reset values in the storage, in the JS sandbox and in the visible html elements. Calixte Denizet 2021-09-26 21:04:11 +02:00
  • d3ca28bc34 Support CMap-data with only strings, when parsing TrueType composite fonts (bug 920426) Jonas Jenwald 2021-09-22 00:44:12 +02:00
  • db7c91e7b1
    Merge pull request #14091 from calixteman/14049_fu calixteman 2021-09-29 13:20:11 -07:00
  • 748ab4983c Add the missing pdf file for the test in the PR #14049 Calixte Denizet 2021-09-29 22:07:07 +02:00
  • 9a74f3e6e0
    Merge pull request #14049 from calixteman/bg_from_mk Tim van der Meij 2021-09-29 21:13:20 +02:00
  • 0776cd9b90 Annotation - Use border and background colors from MK dictionary - it aims to fix #13003; - set the bg and fg colors as they're in the pdf; - put a transparent overlay to help to see the fields. Calixte Denizet 2021-09-18 20:22:29 +02:00
  • 93ed4bfa11
    Merge pull request #14081 from Snuffleupagus/createValidAbsoluteUrl-options Tim van der Meij 2021-09-26 15:00:06 +02:00
  • e6e04694f4 [api-minor] Move the addDefaultProtocolToUrl/tryConvertUrlEncoding functionality into the createValidAbsoluteUrl function Jonas Jenwald 2021-09-26 14:16:28 +02:00
  • 3b3c487bed
    Merge pull request #14076 from calixteman/1716758 Jonas Jenwald 2021-09-26 10:07:19 +02:00
  • f1ceb00ae4
    Merge pull request #14077 from calixteman/driver Jonas Jenwald 2021-09-25 23:32:11 +02:00
  • 558e58f354 XFA - Add <a> element in button when an url is detected (bug 1716758) - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1716758; - some buttons have a JS action with the pattern app.launchURL(...) (or similar) so extract when it's possible the url and generate a <a> element with the href equals to the found url; - pdf.js already had some code to handle that so this patch slightly refactor that. Calixte Denizet 2021-09-25 14:46:40 +02:00
  • 3b1d547738
    Merge pull request #14036 from calixteman/14021 calixteman 2021-09-25 10:34:03 -07:00
  • 4b96735e1d Fix issues in driver.js when getting css sheets Calixte Denizet 2021-09-25 17:56:30 +02:00
  • c0e9108d00 Annotation - Some checkboxes have an empty N dictionary - it aims to fix #14021; - the N dict is empty here so just create a default one; - it implies that the checked checkbox has no appearance so create a default one too in order to print it; - in the pdf in the issue, a checked box is not printed because it has no default appearance so we need to guess its appearance from its state. Calixte Denizet 2021-09-17 15:31:22 +02:00
  • cc110b8542
    Merge pull request #14064 from Snuffleupagus/issue-13845 Tim van der Meij 2021-09-25 12:41:57 +02:00
  • b23b8d8a5d
    Merge pull request #14074 from Snuffleupagus/issue-14046 Jonas Jenwald 2021-09-25 12:37:44 +02:00
  • 36dc93fe5d
    Merge pull request #14065 from Snuffleupagus/fewer-EXPORT_DATA_PROPERTIES Tim van der Meij 2021-09-25 12:25:56 +02:00
  • ee34572fd0
    Merge pull request #14070 from Snuffleupagus/MessageHandler-local-vars Tim van der Meij 2021-09-25 12:22:17 +02:00
  • 07558c158d
    Merge pull request #14069 from Snuffleupagus/deprecate-OPS-paintJpegXObject Tim van der Meij 2021-09-25 12:15:33 +02:00
  • 1dcd2f0cd3 [api-minor] Add basic support for RTL text-content in PopupAnnotations (issue 14046) Jonas Jenwald 2021-09-24 17:30:56 +02:00
  • 104e049338
    Merge pull request #14073 from calixteman/bindItems calixteman 2021-09-24 09:01:52 -07:00
  • e4d62db9e3
    Merge pull request #14072 from calixteman/issue14071 calixteman 2021-09-24 09:01:29 -07:00
  • 97c1e076a1 XFA - Bind items when there's a bindItems entry - In the pdf in issue #14071, some select fields don't contain any values; - the corresponding node has a bindItems and a bind elements and _bindItems function was just not called. Calixte Denizet 2021-09-24 16:08:52 +02:00
  • cd73e282eb XFA - Create a new page in case of overflow - it aims to fix #14071; - a subform is overflowing and the the target in case of overflow is itself. In this case we must create a new page. Calixte Denizet 2021-09-24 14:57:51 +02:00
  • 890a6c1108 Some small readability improvements in the MessageHandler code Jonas Jenwald 2021-09-21 11:21:43 +02:00
  • 7d56fb4cbf Mark the paintJpegXObject operator as deprecated (PR 11601 follow-up) Jonas Jenwald 2021-09-24 12:38:16 +02:00
  • c3ca78fdf8
    Merge pull request #14042 from serdnab/doc-info-color Brendan Dahl 2021-09-23 18:03:04 -07:00
  • d370a281c4
    Merge pull request #14067 from calixteman/1732344 Brendan Dahl 2021-09-23 15:07:00 -07:00
  • 02aa107b21
    Merge pull request #14068 from kjenova/master Jonas Jenwald 2021-09-23 21:22:51 +02:00
  • f38b3ce523
    Merge pull request #14066 from Snuffleupagus/XFAF-viewer-warning Jonas Jenwald 2021-09-23 21:05:33 +02:00
  • 4b0538d07a Don't save anything in XFA entry if no XFA! (bug 1732344) - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1732344 - rename some variables to have a more clear code; - and last but no least, add a unit test to test saving. Calixte Denizet 2021-09-23 18:18:55 +02:00
  • d1e3900a3d
    Fix typo "_annotatationMode" => "_annotationMode" kjenova 2021-09-23 18:42:33 +02:00
  • fd1f0f647f Print a special warning message, in the viewer, for XFA Foreground documents Jonas Jenwald 2021-09-23 15:02:24 +02:00
  • c914e9f0a6
    Merge pull request #14023 from Snuffleupagus/AnnotationLayer-getElementsByName Jonas Jenwald 2021-09-23 14:05:55 +02:00
  • 386acf5bdd Integration test for PR #14023 Calixte Denizet 2021-09-17 11:29:58 +02:00
  • 6cba5509f2 Re-factor document.getElementsByName lookups in the AnnotationLayer (issue 14003) Jonas Jenwald 2021-09-14 12:06:28 +02:00
  • 9acfe486d4 Fallback to font name matching, when checking for serif fonts (issue 13845) Jonas Jenwald 2021-09-22 17:02:06 +02:00
  • e027748627 [api-minor] Stop exporting, by default, a few additional Font properties (PR 11777 follow-up) Jonas Jenwald 2021-09-23 00:34:35 +02:00
  • 8dc22f40c7
    Merge pull request #14063 from Snuffleupagus/disablePreferences-warning Tim van der Meij 2021-09-22 22:33:40 +02:00
  • 1bef4e596c
    Merge pull request #14058 from Snuffleupagus/EventBus-data Tim van der Meij 2021-09-22 22:26:32 +02:00
  • 5254676ef3
    Merge pull request #14055 from Snuffleupagus/PDF_TO_CSS_UNITS Tim van der Meij 2021-09-22 22:24:51 +02:00
  • 96b38f6cbd [GENERIC viewer] Warn about AppOptions being overridden by Preferences during loading Jonas Jenwald 2021-09-22 13:26:17 +02:00
  • af748050c0 [api-minor] Change EventBus.dispatch to only support *one* data-argument Jonas Jenwald 2021-09-22 12:11:47 +02:00
  • 6381158855
    Merge pull request #14056 from Snuffleupagus/bug-1731240 Jonas Jenwald 2021-09-21 21:37:19 +02:00
  • 81a1c1cef7 Correctly validate URLs in XFA documents (bug 1731240) Jonas Jenwald 2021-09-20 14:36:43 +02:00
  • 3e550f392a Add PDF_TO_CSS_UNITS to the PixelsPerInch-structure Jonas Jenwald 2021-09-20 10:10:57 +02:00
  • 580bfad628
    Merge pull request #14053 from Snuffleupagus/BaseViewer-zoom-in/out Tim van der Meij 2021-09-19 13:19:42 +02:00
  • c7dd99da76
    Merge pull request #14050 from Snuffleupagus/issue-14048 Tim van der Meij 2021-09-19 12:42:43 +02:00
  • 92be4645a9
    Merge pull request #14052 from Snuffleupagus/update-packages Tim van der Meij 2021-09-19 12:30:42 +02:00
  • d9f9fa4f1c Move the zoomIn/zoomOut functionality into BaseViewer (PR 14038 follow-up) Jonas Jenwald 2021-09-19 11:54:57 +02:00
  • 32ad677f9c Update l10n files Jonas Jenwald 2021-09-19 09:43:15 +02:00
  • a09d7797fb Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-09-19 09:36:50 +02:00
  • 57734b11f6 Update the es-module-shims package to the latest version Jonas Jenwald 2021-09-19 09:33:05 +02:00
  • 8679bb7aab Update npm packages Jonas Jenwald 2021-09-19 09:31:42 +02:00
  • 8ea27ce157 Tweak how fonts with an /Encoding are handled in adjustToUnicode (issue 14048, PR 13277 follow-up) Jonas Jenwald 2021-09-18 22:28:23 +02:00
  • 83d3bb43f4
    Merge pull request #14041 from Snuffleupagus/issue-9367 Tim van der Meij 2021-09-18 16:47:06 +02:00
  • 20eb6ca2ec
    Merge pull request #14044 from calixteman/bug1719148 Jonas Jenwald 2021-09-18 16:31:45 +02:00
  • 2375318a70
    Merge pull request #14005 from Snuffleupagus/issue-13997 Tim van der Meij 2021-09-18 16:31:15 +02:00
  • 6634afd646
    Merge pull request #14045 from calixteman/noise Jonas Jenwald 2021-09-18 16:13:20 +02:00
  • c870fb489e
    Merge pull request #14013 from Snuffleupagus/api-unittest-instanceof Tim van der Meij 2021-09-18 16:08:19 +02:00
  • 213f3d4cbf
    Merge pull request #14043 from Snuffleupagus/AutomationEventBus Tim van der Meij 2021-09-18 16:02:55 +02:00
  • 2fc10727c5 XFA - Only warn about the wrong xfa type when there is an xfa thing Calixte Denizet 2021-09-18 15:44:05 +02:00
  • ffa2572bdf
    Merge pull request #14038 from calixteman/saveas calixteman 2021-09-18 15:33:03 +02:00