Skip to main content
Participant
April 21, 2022
Question

BUG - Print (javascript method) not working with Adobe Acrobat Reader DC

  • April 21, 2022
  • 3 replies
  • 2049 views

Considering a pdf file that includes a script to be printed :

 

this.print();

 

 The pdf file is 'opened' from an html page. The document doesn't open the print dialog and I don't get any error message. Html: 

 

<object id="pdf" type="application/pdf" data="URL to my pdf file" style="position: absolute;" width="1" height="1"></object>

 

It was working with version 19.010.20099 and it stopped working since version 19.012.20034. I tried other versions including the latest one but the problem still exists.

 

Excpected result: The pdf file is printed (sent to the printer)
Observed : The pdf file is not printed (not sent to the printer)

OS: Windows 10
Adobe Acrobat Reader DC: 19.010.20099
Browser: Firefox 52.0 ESR (Please not that the browser cannot be upgraded)

 

The problem concern all the users


Thanks for your help
This topic has been closed for replies.

3 replies

Participant
April 22, 2022

If I disable 'Run in AppContainer' the document is printed. Is there a way to configure the container so that it accepts printing from the script?  

try67
Community Expert
Community Expert
April 22, 2022

No.

Participant
April 22, 2022

Hello Try67, may I ask a few more details regarding your answer ?

JR Boulay
Community Expert
Community Expert
April 22, 2022

MOVED TO THE ACROBAT READER FORUM

Acrobate du PDF, InDesigner et Photoshopographe
Karl Heinz  Kremer
Community Expert
Community Expert
April 21, 2022

Is the file being displayed in Firefox? If so, then you are using the PDF viewer that is built into and comes with Firefox, and there is a pretty good chance that none of the JavaScript will actually work. For that to work, you need to open the document in Adobe Acrobat or the free Adobe Reader. 

Participant
April 22, 2022

Hi Karl,

the file is not displayed in Firefox, nor the printing dialog box (because of the silent printing option). Please note that the Firefox version is old, and with that version the javascript can be executed.