简体   繁体   中英

When the pdf file is opened in Google Chrome, the javascript code written in it is not recognized

I have written a custom code (a function to remove the default blue background on the text field) in Adobe Acrobat.

Everything works great when I open the pdf file in Adobe Acrobat. However, the custom code is not recognized when I open the pdf file in a browser.

Is there a way to make the pdf file supportable with both Acrobat and the browser?

No

Pdf viewers do not need to run ECMAScript code as it is commonly used for exploits. Also the historic default for acroforms FDF display is pale blue or occasionally red so you need to rewrite all viewers or ask their maintainers to do so.

Results can vary considerably this self adjusting old form cannot work在此处输入图像描述 在此处输入图像描述

using a non blue field colour usually indicates the form field cannot be actioned

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM