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

Firefox prints hidden fields

Community Beginner ,
Nov 17, 2023 Nov 17, 2023

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;

}

TOPICS
JavaScript , PDF , PDF forms , Print and prepress

Views

74

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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