Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
17

Firefox prints hidden fields

Community Beginner ,
Nov 17, 2023 Nov 17, 2023

Hi,

 

I have a pdf file that only shows buttons if a radio is selected. These must then be printed. everything works great in edge. I have resigned myself to blocking this function in firefox. Unfortunately, despite the command, the hidden part is always printed. Does anyone have a solution?

 

 

if ( this.app.viewerType == "PDF.js" )

{

this.getField(buttonname).display = display.noPrint;

}

TOPICS
JavaScript , PDF , PDF forms , Print and prepress
166
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 17, 2023 Nov 17, 2023
LATEST

I'm not sure it will work, but your code has an error in it.

It's just app.viewerType, not this.app.viewerType ...

However, Firefox's PDF plugin has very poor support for scripts, so I won't be surprised if the problem persists.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines