Results 1 to 2 of 2

Thread: Print pdf with javascript

  1. #1

    Default Print pdf with javascript

    Hello,
    I want to write a jscript that should be able to open a specified pdf file, print it and close the application afterwards.
    I have googled the problem and found a lot of tips though nothing worked for me.
    If you are familiar with js and this does not interrupt any of your work, could you write some tips that worked for you. I have Acrobat Reader 7 installed.
    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Amor, Leiria, Portugal
    Posts
    55

    Default Re: Print pdf with javascript

    Just a suggestion. Install firebug in firefox, load an HTML page that embeds the acrobat reader plugin (an iframe with a pdf or something) and inspect the object to see what methods are exposed to javascript. You may have a "print" method. In such a case "document.getElementById('pdfplugin').print();" would be a good change of getting it to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •