数学计算在可填写的PDF表格中无法正常工作。

huangapple go评论96阅读模式
英文:

Mathematical Calculations Not Working in Fillable PDF Forms

问题

作为一名移动应用开发者,在处理涉及可填写PDF表单和自动计算的项目时,我面临两个需要帮助的问题:

  1. 自动计算功能在Chrome浏览器中运行得很完美,但当我在Safari中尝试时,计算不起作用,我必须手动输入值。

  2. 在苹果移动设备上使用PDFKit或WebView打开可填写的PDF表单时,计算也不起作用,需要手动输入值。

我已附上一个视频文件,展示了第一个问题供您参考。

最终,我的关注点是找到一种解决方案,以在iOS设备和Safari浏览器中启用可填写PDF表单的数学计算。对于实现此功能的任何指导或帮助,我将非常感激。

英文:

As a mobile application developer working on a project that involves fillable PDF forms with automated calculations, I'm facing two queries that I need assistance with:

  1. The automated calculation feature works perfectly in Chrome browsers, but when I try it in Safari, the calculations do not function, and I have to manually enter the values.

  2. When opening the fillable PDF forms in PDFKit or WebView on Apple mobile devices for my project, the calculations also do not work, and manual entry of values is required.

I have attached a video file demonstrating the first query for your reference.

Ultimately, my concern is finding a solution to enable mathematical calculations in fillable PDF forms for iOS devices and Safari browsers. Any guidance or assistance in achieving this functionality would be highly appreciated.

答案1

得分: 1

最终,我的关注点是寻找一种解决方案,以在iOS设备和Safari浏览器中启用可填写的PDF表格中进行数学计算。

你不能。Safari的PDF查看器无法处理PDF文件中的JavaScript。

不幸的是,控制PDF体验的唯一方法是控制PDF查看器。除非你可以在你的应用程序中嵌入Chromium或强制使用Chrome,否则你可能需要许可一个能够运行JavaScript的PDF查看器。

英文:

> Ultimately, my concern is finding a solution to enable mathematical calculations in fillable PDF forms for iOS devices and Safari browsers.

You can't. The Safari PDF viewer can't process JavaScript in PDF files.

Unfortunately, the only way to control the PDF experience is to control the PDF viewer. Unless you can embed Chromium in your app or enforce the use of Chrome, you'll probably need to license a PDF viewer that is capable of running JavaScript.

huangapple
  • 本文由 发表于 2023年7月20日 12:28:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76726672.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定