#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    Printing pdf through javascript


    Printing pdf through javascript. No print dialog...

    window.focus()
    window.print()
    will generate error on F12 (IE10) Access Denied. Only when it prints pdf files.

    Then I have tried to solve this by:
    var ax = top.document.getElementById('mainFrame');
    ax.contentWindow.focus();
    ax.contentWindow.print();

    set watch: ax exists as an object - contentwindow and finally print:

    However, Access Denied are generated as well. What is problem?
    That is set up on local computer... Both server and client.. Possibly problem when that will be different domain computer... [
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,158
    Rep Power
    184
    Found this in an Adobe Forum thread; it might help you do what your wanting to do:

    http://livedocs.adobe.com/acrobat_sd...JS.88.506.html
    http://livedocs.adobe.com/acrobat_sd...JS.88.977.html

IMN logo majestic logo threadwatch logo seochat tools logo