Opening a PDF brings up the Print dialog

24

7

I have some PDF's which, when I double-click to open, automatically bring up the Print dialog box in Adobe Reader X. I'm on Windows XP. I think this is because of some code within the PDF itself. Is there some way I can disable such automatic printing from Adobe Reader?

Kit

Posted 2011-03-29T05:33:13.713

Reputation: 1 347

Answers

20

If it's happening only with some specific files then it's probably because:

You can tie Acrobat JavaScript code to a specific PDF document, a page, field, or button within that document, or a field or button within the PDF file, and even to a user action

You can disable javascript in Adobe Reader:

  • Open Edit -> Preferences
  • Click on Javascript on the left-hand pane
  • Uncheck Enable Acrobat Javascript on the right-hand pane

Siim K

Posted 2011-03-29T05:33:13.713

Reputation: 6 776

Added the instructions for deleting the script from the PDF file, from user218924's answer as edited by @Kazark. This makes one answer tell the whole story. – Jim DeLaHunt – 2019-05-31T21:46:11.893

I was able to apply this solution with Foxit. I opened the file, canceled the printing, turned off the Javascript in the preferences, saved the file, and then when I opened the file again the problem was solved. The fix stuck even when I turned javascript back on again. – aparente001 – 2019-10-01T23:01:49.543

20

Open in Adobe Acrobat. Goto tools > Javascript > choose "Document Javascripts". Then a dialog box pops up. There will be this.print() code with a corresponding script name (0 in my case). Just press delete botton in the dialog box and save.

user218924

Posted 2011-03-29T05:33:13.713

Reputation: 201

3This should be the accepted answer as it explains where the actual cause is and how to remove it. The accepted answer suggests modifying Acrobat preferences to disable that feature, which is not a solution, just a workaround. – Francisco Zarabozo – 2017-05-18T20:42:32.240

In Adobe Acrobat 8 Professional the path is a bit different: Advanced > Document Processing > Document JavaScripts... > Press Delete in the pop-up dialog. – martias – 2018-07-27T06:38:22.027

This answer is incomplete, in that you have to turn off Enable Acrobat Javascript as @Sim K's answer says, in order to get past the print dialogue. (My document's script called this.print(); followed immediately by this.close().) I am going to add this answer's instructions to the accepted answer, to have one answer which gives the whole story. – Jim DeLaHunt – 2019-05-31T21:39:21.687

5Can you do this with Adobe Reader, or do you need the full Acrobat version? – wisbucky – 2014-01-25T22:41:40.707

1

These didn't work for me, however, using Tool > Protection > Remove Hidden Information and selecting the item with Javascript to remove did work.

Florence

Posted 2011-03-29T05:33:13.713

Reputation: 11

1

Try to re-create (or re-print) the PDF file using PDFCreator.

malhobayyeb

Posted 2011-03-29T05:33:13.713

Reputation: 463

0

The easiest way to solve this is to simply print the file to another PDF file, and name it something slightly different than the original. That will remove the printing prompt from automatically opening.

user1022098

Posted 2011-03-29T05:33:13.713

Reputation: 1

0

With a PDF this same problem had been happening to for me, I was able to make the necessary alterations without Acrobat. I opened the the PDF in a text editor. As noted by Kazark there was a line with "this.print()". I simply deleted the line, and that fixed the problem.

guest

Posted 2011-03-29T05:33:13.713

Reputation: 1

0

Open the Document Properties in Adobe Acrobat (Ctrl+D) and make sure that no toolbars or window controls are hidden in the tab Initial View.

Christian

Posted 2011-03-29T05:33:13.713

Reputation: 135