英文:
Mathematical Calculations Not Working in Fillable PDF Forms
问题
作为一名移动应用开发者,在处理涉及可填写PDF表单和自动计算的项目时,我面临两个需要帮助的问题:
-
自动计算功能在Chrome浏览器中运行得很完美,但当我在Safari中尝试时,计算不起作用,我必须手动输入值。
-
在苹果移动设备上使用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:
-
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.
-
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论