Help - PDF print window opens by itself

Jenny5988 -  
 joe09 -

Hello,

every time I open a PDF document, it automatically opens the print dialog. I can't find how to disable this automatic opening of the print box - could you please let me know how to do it? I work a lot with PDFs and it's wasting a lot of my time. (no matter which software I use to open the PDFs, the print box still opens...)

Thank you very much!!


7 answers

  1. joe09
     

    thank you brucine,

    I disabled JavaScript in Adobe and the problem is resolved.

    Since it was enabled by default, will this deactivation not cause any malfunctions in Adobe? I don't understand the purpose of this JavaScript...

    in any case, thank you for this tip

    1
    1. brucine Posted messages 24882 Registration date   Status Member Last intervention   4 175
       

      JavaScript is used to read scripts that would be integrated into PDF pages, which is not the general case and poses a security risk; it has nothing to do with a standard PDF file.

      If we had to use a file (for example, an online form), it seems healthier to open it via a browser that controls which script is launched or not; we come back to a solution like Firefox-NoScript or equivalent.

      Unless there are specific needs (PDF modifications, signatures...), Adobe Reader and Acrobat are resource hogs that take up considerable disk space and potentially run a lot of dubious active content, not just JavaScript.

      2
    2. joe09 > brucine Posted messages 24882 Registration date   Status Member Last intervention  
       

      oh thank you for these very clear explanations!

      0
    3. joe09 > brucine Posted messages 24882 Registration date   Status Member Last intervention  
       

      ...it's a joke! I just changed the PDF opening settings to Firefox and... the print window opens with it!

      0
    4. brucine Posted messages 24882 Registration date   Status Member Last intervention   4 175 > joe09
       

      You seem (unless you are using 2 pseudonyms) to have jumped onto someone else's thread without reading the other replies: <n> represents the number of the relevant reply.

      If a PDF prints via JavaScript, it is not simply because it is JavaScript but because (as explained in <13>) the code of the JavaScript in question contains the word "Print": there is of course no way to prohibit such and such words from a script via NoScript, but the script itself.

      If now the script in question conditions the opening of the PDF on the site by the browser (you cannot access it without accepting it), we obviously have it behind our backs whether we have chosen the browser or the PDF software by default to read the PDF extension.

      If it is not classified, please upload the link to one of the PDFs in question so that I can see how it behaves on my end.

      2
    5. joe09 > brucine Posted messages 24882 Registration date   Status Member Last intervention  
       

      ok, I just figured out why some PDFs open with that print dialog!

      I'm in a Google Classroom and I'm downloading some documents in PDF format to my computer, and I just checked that if I download them by going through the PDF print option, they then open with the print dialog, makes sense! Whereas if I download them using the download function, then no print dialog afterwards...

      got it, awesome!

      and thanks

      2
  2. Panth33ra Posted messages 23145 Registration date   Status Member Last intervention   Ambassadeur 2 364
     

    Hello,

    Which web browser do you use?


    0
    1. MPMP10 Posted messages 47351 Registration date   Status Member Last intervention   18 966
       

      Hello Panth33ra,

      1
      1. Panth33ra Posted messages 23145 Registration date   Status Member Last intervention   2 364 > MPMP10 Posted messages 47351 Registration date   Status Member Last intervention  
         

        Hello and thank you MPMP10.

        0
      2. MPMP10 Posted messages 47351 Registration date   Status Member Last intervention   18 966 > Panth33ra Posted messages 23145 Registration date   Status Member Last intervention  
         

        You're welcome..

        0
  3. Jenny5988
     

    Google Chrome

    0
    1. Panth33ra Posted messages 23145 Registration date   Status Member Last intervention   2 364
       

      See HERE for deactivation.

      0
  4. Jenny5988
     

    Thank you again for your help, but it's not working. I can't modify the "target" field. It tells me that the specified path is not valid.

    I might have mentioned that I'm not very good with computers... ????

    And I don't know if this detail is useful, but it's only the pdf files that are causing problems for me. A Word file that I download from Chrome, for example, won't have the dialog box that opens automatically.

    0
  5. Jenny5988
     

    Hello,

    Thank you very much, but it still doesn't work. The print window always opens every time I open a pdf document...

    0
    1. Panth33ra Posted messages 23145 Registration date   Status Member Last intervention   2 364
       

      Hello,

      What printer are you using (brand and model)?

      0
      1. brucine Posted messages 24882 Registration date   Status Member Last intervention   4 175 > Panth33ra Posted messages 23145 Registration date   Status Member Last intervention  
         

        Hello,

        The question seems to be whether it concerns all PDFs or only some of them, and what software is set as the default to open PDFs.

        If there aren't any (i.e., if they are always opened by default in Chrome), that's the default behavior, and there's not much we can do about it: the first step is to install a PDF software to which we assign this extension.

        If the issue only pertains to certain PDFs, it's because they contain a Javascript with the word "Print": you should either use an extension in the browser that controls scripts (an equivalent of NoScript for Firefox in Chrome that I’m not familiar with), or set a default PDF software in which you can either disable the Javascript option (for example, Adobe Reader) or it doesn't exist (basic software like Sumatra PDF, for instance).

        Plan B involves modifying the shortcut to Chrome by right-clicking it, going to properties, and replacing the standard Target "C:\Program Files\Google\Chrome\Application\chrome.exe" with "C:\Program Files\Google\Chrome\Application\chrome.exe" " --kiosk-printing" (note the space before --)

        The alternative option –disable-print-preview instead of --kiosk-printing can be tried, but it essentially only does as its name indicates, which is to remove the print preview; I'm not sure to what extent it disables the print option itself, especially in the presence of a "parasite" Javascript.

        3
  6. Jenny5988
     

    Thank you, but my issue is not with opening PDFs. It's when I open a PDF that it automatically brings up the print dialog box even though I don't click anything. No matter which software I use to open a PDF, the print dialog box opens automatically.

    -1