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?
10 Answers
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
Javascripton the left-hand pane - Uncheck
Enable Acrobat Javascripton the right-hand pane
- 8,062
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.
- 3,509
- 261
Hi a very simple method will be to just open the pdf file with Notepad or Notepad++ & then just find & Comment this line
/JS (this.print\({bUI:true,bSilent:false,bShrinkToFit:true}\);)
like this
//JS (this.print\({bUI:true,bSilent:false,bShrinkToFit:true}\);)
then just save the document & you are Done, Enjoy your PDF like you Want it.
- 51
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.
- 11
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.
- 1
If you have Adobe Acrobat Pro here is the solution tested under XI version.
Open the target document and cancel Print dialog
Go to Tools => JavaScript => Set Document Actions => Edit All
Search for this line: this.print({bUI:true,bSilent:false,bShrinkToFit:true});
Comment the line: //this.print({bUI:true,bSilent:false,bShrinkToFit:true});
Click OK, click OK again, save the document. Voila!
- 1
You can open the pdf with notepad, look for the lines that look something like:
<<
/Type /Action
/S /JavaScript
/JS (this.print\({bUI:true,bSilent:false,bShrinkToFit:true}\);)
>>
and delete the 3 lines:
/Type /Action
/S /JavaScript
/JS (this.print\({bUI:true,bSilent:false,bShrinkToFit:true}\);)
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.
- 135