Help - PDF print window opens by itself
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 réponses
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.
Hello,
Thank you very much, but it still doesn't work. The print window always opens every time I open a pdf document...
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.

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.
oh thank you for these very clear explanations!
...it's a joke! I just changed the PDF opening settings to Firefox and... the print window opens with it!
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.
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