Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Apr 21, 2022 Apr 21, 2022

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
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2022 Apr 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2022 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2022 Apr 22, 2022

MOVED TO THE ACROBAT READER FORUM


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2022 Apr 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?  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2022 Apr 22, 2022

No.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2022 Apr 22, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2022 Apr 22, 2022
LATEST

Sure, but I'm not sure there's much more to say about it...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines