Commit Graph

  • 37bed4ea45 Update l10n files Jonas Jenwald 2021-11-28 10:52:17 +01:00
  • fdf3f03985 Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-11-28 10:44:22 +01:00
  • 0c301dfa8b Update the dommatrix package to the latest version Jonas Jenwald 2021-11-28 10:42:36 +01:00
  • cfc55b044e Update npm packages Jonas Jenwald 2021-11-28 10:40:29 +01:00
  • a807ffe907 Prevent circular references in XRef tables from hanging the worker-thread (issue 14303) Jonas Jenwald 2021-11-26 14:11:39 +01:00
  • a669fce762 Inline the isDict, isRef, and isStream checks in the src/core/xref.js file Jonas Jenwald 2021-11-26 14:11:34 +01:00
  • 680e0efb9d Use Array-destructuring in the XRef.readXRefStream-method Jonas Jenwald 2021-11-26 14:11:29 +01:00
  • a2a5376adf
    Merge pull request #14311 from Snuffleupagus/validate-Pages-Count Jonas Jenwald 2021-11-27 23:47:05 +01:00
  • d0c4bbd828 [api-minor] Validate the /Pages-tree /Count entry during document initialization (issue 14303) Jonas Jenwald 2021-11-25 18:34:11 +01:00
  • 9a1e27efc5
    Merge pull request #14313 from Snuffleupagus/PDFDocument_pagePromises-map Tim van der Meij 2021-11-27 20:58:23 +01:00
  • bbd8b5ce9f
    Merge pull request #14319 from calixteman/xfa_arc calixteman 2021-11-27 11:32:32 -08:00
  • 31e13515f5 XFA - Draw arcs correctly - it aims to fix #14315; - take into account the startAngle to compute the coordinates of the final point. Calixte Denizet 2021-11-27 17:34:05 +01:00
  • b11091c0f9
    Merge pull request #14318 from calixteman/14317 Jonas Jenwald 2021-11-27 18:49:52 +01:00
  • cfdaa57353 Handle sub/super-scripts in rich text - it aims to fix #14317; - change the fontSize and the verticalAlign properties according to the position of the text. Calixte Denizet 2021-11-27 15:49:57 +01:00
  • e439f4d620
    Merge pull request #14314 from Snuffleupagus/XFA-viewer-refs-cache-fix Jonas Jenwald 2021-11-26 20:47:45 +01:00
  • 8fa5fcfe72 [Regression] Prevent errors, during loading, in the viewer for XFA-documents (PR 14295 follow-up) Jonas Jenwald 2021-11-26 20:21:12 +01:00
  • 4c56214ab4 Convert PDFDocument._getLinearizationPage to an async method Jonas Jenwald 2021-11-26 19:57:47 +01:00
  • 080996ac68 Change the _pagePromises cache, in the worker, from an Array to a Map Jonas Jenwald 2021-11-26 19:47:13 +01:00
  • 2e2d049a9c
    Merge pull request #14310 from Snuffleupagus/XRef-bogus-byteWidths Jonas Jenwald 2021-11-25 19:57:40 +01:00
  • ca8d2bdce4 Abort parsing when the XRef /W-array contain bogus entries (issue 14303) Jonas Jenwald 2021-11-25 13:28:24 +01:00
  • a2c380ccb3
    Merge pull request #14298 from Snuffleupagus/issue-10906 Tim van der Meij 2021-11-24 21:39:28 +01:00
  • 973932321e
    Merge pull request #14304 from Snuffleupagus/huge-XRef-entry Tim van der Meij 2021-11-24 21:28:24 +01:00
  • ae4f1ae3e7 Ensure that ChunkedStream won't attempt to request data *beyond* the document size (issue 14303) Jonas Jenwald 2021-11-24 18:55:28 +01:00
  • 5e2aec7dd7
    Merge pull request #14299 from SaiKiranMukka/pageviewer-to-async Jonas Jenwald 2021-11-24 14:52:31 +01:00
  • f7b1da418f Center pages vertically in PresentationMode (issue 10906) Jonas Jenwald 2021-11-23 13:29:00 +01:00
  • 711fbe1376 Convert examples/components/pageviewer.js to await/async (issue 14127) Sai Kiran Mukka 2021-11-24 13:25:36 +05:30
  • 70fc30d97c
    Merge pull request #14295 from Snuffleupagus/rm-viewer-_pagesRequests Tim van der Meij 2021-11-21 14:30:37 +01:00
  • 58a2728647 Ensure that BaseViewer.#ensurePdfPageLoaded updates the PDFLinkService-pagesRefCache if necessary Jonas Jenwald 2021-11-20 22:31:31 +01:00
  • 0ebac67a9f Remove the {BaseViewer, PDFThumbnailViewer}._pagesRequests caches Jonas Jenwald 2021-11-20 18:24:12 +01:00
  • aabd4e5092
    Merge pull request #14294 from Snuffleupagus/getStats-refactor Tim van der Meij 2021-11-20 15:42:46 +01:00
  • 6da0944fc7 [api-minor] Replace PDFDocumentProxy.getStats with a synchronous PDFDocumentProxy.stats getter Jonas Jenwald 2021-11-11 18:14:26 +01:00
  • 41ac3f0c07
    Merge pull request #14291 from Snuffleupagus/force-postMessageTransfers Tim van der Meij 2021-11-19 20:02:51 +01:00
  • b1e9e214bf
    Merge pull request #14229 from brendandahl/term-log Tim van der Meij 2021-11-19 19:48:59 +01:00
  • c6cb39ef30
    Merge pull request #14262 from Snuffleupagus/issue-14261 Brendan Dahl 2021-11-19 07:51:21 -08:00
  • 6f22327e61 [api-minor] Only use Workers when postMessage transfers are supported (PR 11123 follow-up) Jonas Jenwald 2021-11-19 13:51:18 +01:00
  • 052db56a2e Add an easy way to log to the terminal during browser tests. Brendan Dahl 2021-11-03 11:57:48 -07:00
  • 9f4a2cf5ce
    Merge pull request #14276 from Snuffleupagus/issue-14242-2 Brendan Dahl 2021-11-18 13:43:58 -08:00
  • 3dccaccbb4
    Merge pull request #14278 from Snuffleupagus/rm-removeChild Tim van der Meij 2021-11-17 20:17:55 +01:00
  • f90eebd282
    Merge pull request #14280 from Snuffleupagus/scrollMode-PAGE-spread-loop Tim van der Meij 2021-11-17 19:46:30 +01:00
  • 4e2c2fafc9 Enable the unicorn/prefer-dom-node-remove ESLint plugin rule Jonas Jenwald 2021-11-16 15:51:33 +01:00
  • 4ef1a129fa Replace the remaining Node.removeChild() instances with Element.remove() Jonas Jenwald 2021-11-16 12:36:22 +01:00
  • 3209c013c4
    Merge pull request #14247 from calixteman/button Brendan Dahl 2021-11-16 08:10:40 -08:00
  • 1214c056e9 Slightly optimize spreadMode toggling with ScrollMode.PAGE set (PR 14112 follow-up) Jonas Jenwald 2021-11-16 15:16:59 +01:00
  • 7d4c37e988 Use the new iterator in the PDFPageViewBuffer unit-tests Jonas Jenwald 2021-11-15 13:26:50 +01:00
  • e909fcdba8 Only show the loadingIcon-spinner on visible pages (issue 14242) Jonas Jenwald 2021-11-14 12:20:04 +01:00
  • e4f97a2a91
    Merge pull request #14273 from Snuffleupagus/update-packages Tim van der Meij 2021-11-14 15:09:31 +01:00
  • 971ac8e993 Include the /Lang-property, when it exists, in the StructTree-data (issue 14261) Jonas Jenwald 2021-11-11 14:36:18 +01:00
  • a54bed4963 Enable the ESLint no-loss-of-precision rule Jonas Jenwald 2021-11-14 10:40:32 +01:00
  • c47f5e81fe Update l10n files Jonas Jenwald 2021-11-14 10:38:28 +01:00
  • 04bdc26d3a Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-11-14 10:27:29 +01:00
  • 1dd74efb0f Update the eslint-plugin-no-unsanitized package to the latest version Jonas Jenwald 2021-11-14 10:24:41 +01:00
  • bd1e140e2a Update the dommatrix package to the latest version Jonas Jenwald 2021-11-14 10:20:54 +01:00
  • 9f6d37263c Update npm packages Jonas Jenwald 2021-11-14 10:17:30 +01:00
  • 712621b508
    Merge pull request #14255 from Snuffleupagus/GrabToPan-class Jonas Jenwald 2021-11-13 23:24:36 +01:00
  • 08d56c67ae Convert GrabToPan to a standard class Jonas Jenwald 2021-11-09 13:00:11 +01:00
  • ed6af0f844 [web/grab_to_pan.js] Inline the isLeftMouseReleased helper function Jonas Jenwald 2021-11-09 12:46:34 +01:00
  • 7a428345db
    Merge pull request #14271 from calixteman/params Jonas Jenwald 2021-11-13 22:59:34 +01:00
  • fe95e100e4 Parse query string in using URLSearchParams - I just noticed in reading the code that we parse that stuff when something exists in the web api; - see https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams. Calixte Denizet 2021-11-13 17:36:57 +01:00
  • de7cfed9e3
    Merge pull request #14260 from Snuffleupagus/telemetry-pageInfo-once Tim van der Meij 2021-11-13 20:22:58 +01:00
  • 138ebb09c0
    Merge pull request #14253 from Snuffleupagus/ScrollMode-PAGE-chromium Tim van der Meij 2021-11-13 20:12:04 +01:00
  • 85c6dd59ce
    Merge pull request #14268 from calixteman/outline calixteman 2021-11-13 08:12:56 -08:00
  • 7041c62ccf Remove non-displayable chars from outline title (#14267) - it aims to fix #14267; - there is nothing about chars in range [0-1F] in the specs but acrobat doesn't display them in any way. Calixte Denizet 2021-11-12 19:41:32 +01:00
  • db41c49321
    Merge pull request #14270 from Snuffleupagus/issue-14269 Jonas Jenwald 2021-11-13 16:01:28 +01:00
  • afcc99a86d When parsing corrupt documents without any trailer-dictionary, fallback to the "top"-dictionary (issue 14269) Jonas Jenwald 2021-11-13 13:06:21 +01:00
  • 28fb3975eb
    Merge pull request #14266 from calixteman/bug931481 Jonas Jenwald 2021-11-12 21:42:32 +01:00
  • a88ff34eb7 Don't consider space as real space when there is an extra spacing (bug 931481) - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=931481; - real space chars are pushed in the chunk but when there is an extra spacing, the next char position must be compared with the previous one; - for example, an extra spacing can cancel a space so visually there are no space. Calixte Denizet 2021-11-12 18:04:17 +01:00
  • 7d6d3fc124
    Merge pull request #14265 from calixteman/14150 calixteman 2021-11-12 09:53:19 -08:00
  • 5b7e1f5232 XFA - Avoid an exception when looking for a font in a parent node - it aims to fix issue https://github.com/mozilla/pdf.js/issues/14150; - a parent can be null in case the root has been reached, so just add a check. Calixte Denizet 2021-11-12 16:17:02 +01:00
  • 33ea817b20 [api-minor] Render pushbuttons on their own canvas (bug 1737260) - First step to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1737260; - several interactive pdfs use the possibility to hide/show buttons to show different icons; - render pushbuttons on their own canvas and then insert it the annotation_layer; - update test/driver.js in order to convert canvases for pushbuttons into images. Calixte Denizet 2021-11-06 18:36:49 +01:00
  • 3a31b7ef0c
    Merge pull request #14258 from Snuffleupagus/issue-14256-2 Brendan Dahl 2021-11-11 14:23:43 -08:00
  • 8eed0b9145 Report "pageInfo" telemetry once, rather than for each rendered page Jonas Jenwald 2021-11-11 12:36:06 +01:00
  • ea1c348c67 Always prefer abbreviated keys, over full ones, when doing any dictionary lookups (issue 14256) Jonas Jenwald 2021-11-09 22:39:21 +01:00
  • 4ee906adf4
    Merge pull request #14209 from Snuffleupagus/issue-14205 Brendan Dahl 2021-11-09 07:59:14 -08:00
  • 4bb9de4b00
    Merge pull request #14239 from calixteman/1739502 calixteman 2021-11-08 03:14:42 -08:00
  • 27e461a897 [Chromium addon] Add the Page scrolling mode to the options (PR 14112 follow-up) Jonas Jenwald 2021-11-08 10:18:25 +01:00
  • 8064318015
    Merge pull request #14250 from calixteman/14249 Jonas Jenwald 2021-11-07 22:28:53 +01:00
  • 13ae6d493a XFA - Encode tag names in UTF-8 when saving (fix #14249) Calixte Denizet 2021-11-07 21:41:37 +01:00
  • 891f21fba6
    Merge pull request #14245 from Snuffleupagus/PDFPageViewBuffer-class Tim van der Meij 2021-11-07 14:37:33 +01:00
  • 13ef763222 [Google Chrome] Ensure that markedContent spans are placed in the top-left corner (issue 14205) Jonas Jenwald 2021-10-29 14:32:13 +02:00
  • efb4455749
    Merge pull request #14240 from calixteman/14014 calixteman 2021-11-06 13:21:43 -07:00
  • b820beb8d9
    Merge pull request #14244 from Snuffleupagus/issue-14243 Tim van der Meij 2021-11-06 19:30:47 +01:00
  • 1681e25008 XFA - Get each page asynchronously in order to avoid blocking the event loop (#14014) Calixte Denizet 2021-11-05 20:52:13 +01:00
  • 12d41bcba4 Prevent mobile devices from interfering with the textLayer-elements (issue 14243) Jonas Jenwald 2021-11-06 11:39:43 +01:00
  • a774707e31 Remove the moveToEndOfArray helper function, since it's unused Jonas Jenwald 2021-11-06 10:10:12 +01:00
  • f55bf42398 Convert PDFPageViewBuffer to use a Set internally Jonas Jenwald 2021-11-06 10:10:05 +01:00
  • 0eba15b43a Convert PDFPageViewBuffer to a standard class Jonas Jenwald 2021-11-06 10:09:59 +01:00
  • c62bcb55ac Adjust the "handles resize correctly, with idsToKeep provided" unit-test (PR 14238 follow-up) Jonas Jenwald 2021-11-06 10:09:51 +01:00
  • 38efd13a54
    Merge pull request #14230 from brendandahl/reduce-gradient-size Jonas Jenwald 2021-11-06 10:17:49 +01:00
  • b56cca0324 Create shading patterns the size of the current path. (bug 1722807) Brendan Dahl 2021-11-03 14:21:15 -07:00
  • 3b5a463357
    Merge pull request #14241 from brendandahl/group-bbox-matrix Brendan Dahl 2021-11-05 20:39:02 -07:00
  • 8161d3f29d Don't double apply a group xobject's bbox. Brendan Dahl 2021-11-05 14:50:48 -07:00
  • 30bd5f0a39
    Merge pull request #14238 from Snuffleupagus/PDFPageViewBuffer-tests Tim van der Meij 2021-11-05 19:58:15 +01:00
  • fe205efd8d Add a couple of basic unit-tests for PDFPageViewBuffer Jonas Jenwald 2021-11-05 14:29:02 +01:00
  • a08763f4aa XFA - Fix a breakBefore issue when target is a contentArea and startNew is 1 (bug 1739502) - it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1739502; - when the target area was the current content area, everything was pushed in it instead of creating a new one (and consequently a new pageArea is created). - the pdf shows an alignment issue on page 4: - the hAlign is "center" but the subform was the width of its parent, so compute the real width of the subform with tb layout; - there is an extra empty page at the end of the pdf: - there is a subform with some hidden elements which are not rendered for now (since there is no plugged JS engine it isn't possible to draw them in changing their visibility). - so in case a subform is empty and has no real dimensions (at least one is 0), we just consider it as empty. Calixte Denizet 2021-11-05 18:59:49 +01:00
  • e136afbabc
    Merge pull request #14218 from janekotovich/subform_min_0 calixteman 2021-11-05 04:12:34 -07:00
  • 8222d6530b
    Merge pull request #14232 from brendandahl/show-text-pattern Jonas Jenwald 2021-11-05 10:04:56 +01:00
  • 1c7048399b Use correct matrix for patterns with showText. Brendan Dahl 2021-11-04 16:45:48 -07:00
  • 56b502391c XFA subform with occur min=0 and no bound data displaying Jane-Kotovich 2021-11-02 15:35:08 +10:00
  • 611627f5a1
    Merge pull request #14219 from Snuffleupagus/getVisibleElements-ids Jonas Jenwald 2021-11-03 23:49:27 +01:00
  • e1a35e7bb6
    Merge pull request #14213 from Snuffleupagus/issue-11656 Jonas Jenwald 2021-11-03 22:09:14 +01:00