Commit Graph

  • 6255c2a8f3
    Merge pull request #13376 from calixteman/6132 Brendan Dahl 2021-06-04 14:00:51 -07:00
  • 17f1857556 Add more info for showText operator in stepper. Brendan Dahl 2021-06-04 09:48:30 -07:00
  • eba6db9dc6
    Merge pull request #13497 from Snuffleupagus/HTMLResult-lazy Tim van der Meij 2021-06-04 21:24:49 +02:00
  • ce1ed60d11
    Merge pull request #13490 from Snuffleupagus/issue-10362 Tim van der Meij 2021-06-04 21:13:06 +02:00
  • 75113e4517 Initialize HTMLResult.{FAILURE, EMPTY} lazily Jonas Jenwald 2021-06-04 20:53:17 +02:00
  • ed0990ab6f
    Merge pull request #13492 from MMeent/patch-1 Tim van der Meij 2021-06-04 21:00:02 +02:00
  • e0676ec298
    Merge pull request #13473 from calixteman/usehref calixteman 2021-06-04 20:13:22 +02:00
  • 425e58431a
    Merge pull request #13482 from Snuffleupagus/scrollMatches-fix Brendan Dahl 2021-06-04 10:16:05 -07:00
  • 66a5671847 Remove gulp makefile, since it's broken and unused Jonas Jenwald 2021-06-04 12:53:19 +02:00
  • 3631121841
    Add normalization for Hyphen -> Hyphen-minus MMeent 2021-06-04 15:54:52 +02:00
  • 11573ddd16 XFA - Implement usehref support - attribute 'use' was already implemented but not usehref - in general, usehref should make reference to current document - add support for SOM expressions in use and usehref to search a node. - get prototype for all nodes if any. Calixte Denizet 2021-05-31 13:44:49 +02:00
  • 3b502f7e07
    Merge pull request #13478 from brendandahl/find-regression Jonas Jenwald 2021-06-04 14:09:35 +02:00
  • 6c249f8e21 Clean-up gulpfile.js by removing most "-pre" tasks (issue 10362) Jonas Jenwald 2021-06-04 12:30:09 +02:00
  • 92434b1eb4 Replace anonymous functions in gulpfile.js with named functions (issue 10362) Jonas Jenwald 2021-06-03 15:44:17 +02:00
  • ed9d5c4ec2
    Merge pull request #13489 from Snuffleupagus/hasEOL-TextItem-docs Jonas Jenwald 2021-06-04 11:16:43 +02:00
  • 4b1c4d2bd9 Add hasEOL to the TextItem typedef in the API (PR 13257 follow-up) Jonas Jenwald 2021-06-04 09:56:29 +02:00
  • 29e6930bb6 Fix scrolling of search results in documents with marked content (bug 1714183) Jonas Jenwald 2021-06-03 11:35:12 +02:00
  • 2a35b39c46 Remove the unused dataset checks from the scrollIntoView helper function Jonas Jenwald 2021-06-03 11:11:27 +02:00
  • 9165dc0659
    Merge pull request #13480 from Snuffleupagus/generic-viewer-print Jonas Jenwald 2021-06-02 22:34:15 +02:00
  • e962d7787e
    Merge pull request #13451 from calixteman/xfa_checkbox calixteman 2021-06-02 22:02:41 +02:00
  • daf8461489 [GENERIC viewer] Fix printing regression from PR 13411 Jonas Jenwald 2021-06-02 21:37:49 +02:00
  • c7ca771caf
    Merge pull request #13476 from Snuffleupagus/Puppeteer-10 Tim van der Meij 2021-06-02 21:29:17 +02:00
  • 1da42e8b8e Fix find highlighting regression from #13306. Brendan Dahl 2021-06-01 15:25:40 -07:00
  • f61f80a5a3 XFA - Use native radio and checkbox buttons - Remove current stuff which relies on some system fonts to avoid bad rendering. Calixte Denizet 2021-05-27 17:44:55 +02:00
  • f2ade671ec
    Merge pull request #13411 from calixteman/xfa_print calixteman 2021-06-01 19:06:49 +02:00
  • 3456ed271b
    Merge pull request #13378 from calixteman/10544 Jonas Jenwald 2021-06-01 16:04:09 +02:00
  • bc17ac5a2f Update Puppeteer to version 10 Jonas Jenwald 2021-06-01 14:55:19 +02:00
  • 706c27b9d4
    Merge pull request #13472 from Snuffleupagus/checkbox-print-evaluator calixteman 2021-05-31 14:06:38 +02:00
  • af78ba64bd Don't change options of the globally used PartialEvaluator in the "should render checkbox with fallback font for printing" unit-test Jonas Jenwald 2021-05-31 11:54:33 +02:00
  • e3bde56311 Ensure that the old/new options are correctly combined in PartialEvaluator.clone Jonas Jenwald 2021-05-31 12:13:20 +02:00
  • a434011517 XFA - Add support to print XFA forms Calixte Denizet 2021-05-27 16:56:31 +02:00
  • 8c53bf8647
    Merge pull request #13437 from calixteman/xfa_mv_root calixteman 2021-05-31 10:14:15 +02:00
  • dd0014ef2e
    Merge pull request #13465 from Snuffleupagus/misc-legacy-cleanup Tim van der Meij 2021-05-30 21:13:42 +02:00
  • a592bea37e
    Merge pull request #13466 from eltociear/patch-3 Tim van der Meij 2021-05-30 21:08:58 +02:00
  • c66289f1fc
    Fix typo in template.js Ikko Ashimine 2021-05-31 01:02:07 +09:00
  • d8a7c75b4a Revert "Add deprecated handling of the now removed AnnotationStorage API-parameters" (PR 13207 follow-up) Jonas Jenwald 2021-05-30 16:35:21 +02:00
  • 13dbbdcfb0 Remove the -es5/-legacy special handling in the gulp wintersmith task (PR 12978 follow-up) Jonas Jenwald 2021-05-30 16:08:54 +02:00
  • d05f4c620e
    Merge pull request #13464 from timvandermeij/bump Tim van der Meij 2021-05-30 14:17:13 +02:00
  • 9b0ea437c5
    Bump versions in pdfjs.config Tim van der Meij 2021-05-30 14:15:09 +02:00
  • e667c8cbcf
    Merge pull request #13463 from mozilla/dependabot/npm_and_yarn/ws-7.4.6 v2.9.359 Tim van der Meij 2021-05-30 13:08:08 +02:00
  • 03d826affa
    Bump ws from 7.4.5 to 7.4.6 dependabot[bot] 2021-05-30 10:58:18 +00:00
  • 2cd038857a
    Merge pull request #13462 from Snuffleupagus/update-packages Tim van der Meij 2021-05-30 12:57:15 +02:00
  • 0bfd99ae98 Update l10n files Jonas Jenwald 2021-05-30 08:02:55 +02:00
  • 4ef538b19a Update the yargs package to the latest version Jonas Jenwald 2021-05-30 07:51:30 +02:00
  • e7ab2d6eb5 Update the eslint-plugin-unicorn package to the latest version Jonas Jenwald 2021-05-30 07:50:12 +02:00
  • fd6d60935b Update npm packages Jonas Jenwald 2021-05-30 07:43:13 +02:00
  • d725ff36f1
    Merge pull request #13460 from nikolas/patch-1 Tim van der Meij 2021-05-29 15:43:34 +02:00
  • 4902f9a54a
    Update webpack import instructions nikolas 2021-05-28 20:46:56 -04:00
  • a0ce3cb3b4
    Merge pull request #13448 from Snuffleupagus/_setDefaultAppearance-alpha Tim van der Meij 2021-05-28 23:39:36 +02:00
  • 5e5641b147
    Merge pull request #13457 from Snuffleupagus/issue-13242 Tim van der Meij 2021-05-28 23:38:39 +02:00
  • 0d56b1c365
    Merge pull request #13443 from Snuffleupagus/charsCache Tim van der Meij 2021-05-28 21:29:57 +02:00
  • a6484c9861
    Merge pull request #13427 from calixteman/xfa_storage Brendan Dahl 2021-05-28 12:10:08 -07:00
  • 707a9e3b02 Work-around for HighlightAnnotations without a top-level /ExtGState-entry (issue 13242) Jonas Jenwald 2021-05-28 13:30:18 +02:00
  • e499521b78
    Merge pull request #13456 from calixteman/clazz calixteman 2021-05-28 12:18:27 +02:00
  • 2cc3b96351
    Merge pull request #13455 from calixteman/italic Jonas Jenwald 2021-05-28 11:49:48 +02:00
  • f35176a32e Replace clazz by classNames Calixte Denizet 2021-05-28 11:17:38 +02:00
  • 1b0006093d Italic angle is defined clockwise in CSS when it's counterclockwise in PDF Calixte Denizet 2021-05-28 11:06:11 +02:00
  • d285580f48
    Merge pull request #13450 from Snuffleupagus/getPageIndex-JSDoc calixteman 2021-05-27 17:25:41 +02:00
  • 70c79c6f69 Fix the JSDocs for PDFDocumentProxy.getPageIndex (issue 13449) Jonas Jenwald 2021-05-27 16:41:08 +02:00
  • 52c13326cd Support Annotations, without appearance streams, with bogus /Rect-entries (issue 13447) Jonas Jenwald 2021-05-27 13:13:10 +02:00
  • a6447f2ca2 Support strokeAlpha/fillAlpha when creating a fallback appearance stream (issue 6810) Jonas Jenwald 2021-05-27 10:06:13 +02:00
  • f587d5998e
    Merge pull request #13445 from calixteman/ps_name calixteman 2021-05-27 13:52:47 +02:00
  • 0c698346b8 Fix Postscript name in font to avoid bug when saving in pdf - for xfa rendering, fonts are loaded and used in html; - when printed and saved in pdf, on linux, Firefox uses cairo backend - when subsetting a font, cairo uses the font postscript name and when this one is empty that leads to a bug (the append at 63f0d62684/src/cairo-cff-subset.c (L2049) is failing because of null length) - so this patch adds a postscript name to the font to make cairo happy. Calixte Denizet 2021-05-26 17:07:59 +02:00
  • 8b1d01816b Re-factor the charsCache on Font-instances Jonas Jenwald 2021-05-26 13:07:00 +02:00
  • 3da9f077be
    Merge pull request #13435 from Snuffleupagus/eslint-no-array-push-push Tim van der Meij 2021-05-25 21:10:01 +02:00
  • 6e92b56efa
    Merge pull request #13436 from Snuffleupagus/getPathGenerator-buf Tim van der Meij 2021-05-25 20:35:01 +02:00
  • 774f4da9cb
    Merge pull request #13429 from mozilla/dependabot/npm_and_yarn/browserslist-4.16.6 Tim van der Meij 2021-05-25 20:29:46 +02:00
  • 45c3f00a27 XFA - Move the fake HTML representation of XFA from the worker to the main thread - the only goal of this patch is to be able to get synchronously the fake html when printing from firefox: - in order to print we need to inject some html in beforeprint callback but we cannot block in waiting for all the pages. - from a memory point of view: it doesn't change anything since the fake HTML is deleted in the worker; - this way we don't break any assumptions. Calixte Denizet 2021-05-25 15:50:12 +02:00
  • 9478d2f064 XFA - Add a storage to save fields values - this is required to be able to print (or save) a document. Some pages can be unloaded (because pdf.js is lazy) and this storage will help to save their data in order to resuse them when printing or just when displaying a page again. Calixte Denizet 2021-05-24 13:42:42 +02:00
  • 4d26623e59
    Merge pull request #13402 from calixteman/xfa_layout1 calixteman 2021-05-25 18:31:53 +02:00
  • 7cebdbd58c XFA - Fix lot of layout issues - I thought it was possible to rely on browser layout engine to handle layout stuff but it isn't possible - mainly because when a contentArea overflows, we must continue to layout in the next contentArea - when no more contentArea is available then we must go to the next page... - we must handle breakBefore and breakAfter which allows to "break" the layout to go to the next container - Sometimes some containers don't provide their dimensions so we must compute them in order to know where to put them in their parents but to compute those dimensions we need to layout the container itself... - See top of file layout.js for more explanations about layout. - fix few bugs in other places I met during my work on layout. Calixte Denizet 2021-05-19 11:09:21 +02:00
  • 9ad7746118 Replace a couple of standard for-loops with for...of in src/display/font_loader.js Jonas Jenwald 2021-05-01 18:01:07 +02:00
  • dcbb23d7fa Re-factor FontFaceObject.getPathGenerator to use Arrays instead of strings Jonas Jenwald 2021-05-01 17:59:33 +02:00
  • ec3bcadf56 Enable the unicorn/no-array-push-push ESLint plugin rule Jonas Jenwald 2021-05-24 13:20:19 +02:00
  • 4f853f7669
    Bump browserslist from 4.16.3 to 4.16.6 dependabot[bot] 2021-05-24 20:40:00 +00:00
  • 3538ef017f
    Merge pull request #13421 from calixteman/no_remote_image Tim van der Meij 2021-05-22 16:06:33 +02:00
  • 9127e11022
    Merge pull request #13420 from timvandermeij/test-downloadutils Tim van der Meij 2021-05-22 15:58:51 +02:00
  • 209ac5ca57 XFA - Don't display images with a href Calixte Denizet 2021-05-22 15:09:43 +02:00
  • 99430225b0
    Drop obsolete logic from the downloadFile function in test/downloadutils.js Tim van der Meij 2021-05-22 14:19:30 +02:00
  • 0df1a56619
    Merge pull request #13417 from Snuffleupagus/xfa-URL-clone calixteman 2021-05-22 14:31:59 +02:00
  • de680d7777
    Merge pull request #13381 from Snuffleupagus/buildFontPaths-ignoreErrors Tim van der Meij 2021-05-22 13:06:31 +02:00
  • 92e731011d
    Merge pull request #13419 from Snuffleupagus/more-stringToBytes Tim van der Meij 2021-05-22 13:00:16 +02:00
  • 53a70244d0 Use the stringToBytes helper function in more places Jonas Jenwald 2021-05-22 12:23:09 +02:00
  • ba13bd8c2d [XFA] Send URLs as strings, rather than objects (issue 1773) Jonas Jenwald 2021-05-22 09:57:44 +02:00
  • c4429bc3f2 Do the isType3Font-check *once*, rather than repeating it, in PartialEvaluator.translateFont Jonas Jenwald 2021-05-15 18:41:28 +02:00
  • 68350378c0 Handle errors gracefully, in PartialEvaluator.buildFontPaths, when glyph path building fails Jonas Jenwald 2021-05-15 18:21:18 +02:00
  • 0dba468e60 Don't allow the LoopbackPort to "clone" a URL Jonas Jenwald 2021-05-22 09:50:25 +02:00
  • b2ffebe978
    Merge pull request #13416 from calixteman/xfa_config Tim van der Meij 2021-05-21 20:33:35 +02:00
  • 8a8879aed2 XFA - Fix wrong function name Calixte Denizet 2021-05-21 20:25:26 +02:00
  • d1d9b9043d
    Merge pull request #13415 from Snuffleupagus/getDestination-out-of-order Tim van der Meij 2021-05-21 20:15:09 +02:00
  • 5fdb12661b
    Merge pull request #13408 from Snuffleupagus/zoom-click-blur Tim van der Meij 2021-05-21 20:07:35 +02:00
  • 7d9a83012b
    Merge pull request #13401 from Snuffleupagus/rm-some-prettier-ignore Tim van der Meij 2021-05-21 20:03:07 +02:00
  • 8d5689387b Improve handling of named destinations in out-of-order NameTrees (PR 10274 follow-up) Jonas Jenwald 2021-05-21 13:58:33 +02:00
  • 6468e1d0cd Remove focus from the zoom dropdown, when a mouse is used (bug 1300525, issue 4923) Jonas Jenwald 2021-05-20 15:17:01 +02:00
  • 1a8d05fdcf Remove some, with Prettier 2.3.0, unnecessary // prettier-ignore comments Jonas Jenwald 2021-05-19 11:24:38 +02:00
  • faf6b10939
    Merge pull request #13394 from calixteman/xml_parser calixteman 2021-05-18 11:14:48 +02:00
  • 4544ebf38a Handle PI with no value in xml parser - an XML PI contains a target and optionally some content (see https://en.wikipedia.org/wiki/Processing_Instruction) - the parser expected to always have some content and so it could lead to wrong parsing. Calixte Denizet 2021-05-18 10:22:12 +02:00
  • 239d0097fa
    Merge pull request #13390 from calixteman/opentype_and_xfa Brendan Dahl 2021-05-17 12:39:10 -07:00
  • 46c2eeb19a
    Merge pull request #13389 from calixteman/width_in_cff Brendan Dahl 2021-05-17 09:13:45 -07:00
  • 17e9cfcd2a
    Merge pull request #13328 from calixteman/js_display1 Brendan Dahl 2021-05-17 08:47:13 -07:00