Skip to main content
Participant
November 17, 2023
Question

Firefox prints hidden fields

  • November 17, 2023
  • 1 reply
  • 253 views

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;

}

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 17, 2023

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.