Copy link to clipboard
Copied
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;
}
Copy link to clipboard
Copied
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.