Acrobat reader print with javascript script

Hello,
I read the documentation for printing silently using javascript, but it does not work as not all COM objects are installed.
A code example:
<body>
<object id="examplePDF" data="DFWCRT133735.PDF" type="application/pdf" title="SamplePdf" width="100%" height="100%">
   Your browser does not support PDF, Please install Adobe Acrobat.
</object>
<div id="pdfprop">
</div>
<script type="text/javascript">
    var pdf = document.getElementById("examplePDF");
    var divProps = document.getElementById("pdfprop");
    if (pdf) {
// Attempt 1: Works, but shown printing dialig which I do not want
//        pdf.print();
// Attempt 2: Does not work. Shows an exception about parameters when printing
        //var printParms = { bUI: false, bSilent: true, bShrinkToFit: true };
        //pdf.print(printParms);
// Attempt 3: Does not work as can't instatiate unexistent progid, class AcroExch.PDDoc. COM object is not registered
        var srcDoc = new ActiveXObject("AcroExch.PDDoc");
        var jsObj = srcDoc.GetJSObject();
        var pp = jsObj.getPrintParams();
        pp.interactive = pp.constants.interactionLevel.automatic;
        pdf.print(pp);
</script>
</body>
I read in google something about the Acrobat Pro version will have the missing COM object, but I can't force all my clients to buy that product. Is it possible with the reader version.
I'll appreciate any help.

I am trying with Reader 9.
I am not trying to print from the server. The printing will happen on the client computers that is why I am trying to print using javascript from an html page. My clients do have different versions of Reader from 6 to latest
Is there any way to achieve it with out installing anything else on the computers?
Thanks,

Similar Messages

  • Pdf reader X has problems with small pdf and printer with post script driver

    Hi friends.
    I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
    When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
    When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
    When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
    my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
    But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
    i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
    Can someone help me please.........are there settings in Reader X who can solve my problem ???
    Thank you very much for help!

    put ? after rwcgi60.exe

  • Acrobat Reader 9 with an Acrobat 5-8 Created Form?

    Hello,
    I am new to my job working with a ASP application that provides a PDF form (created in Acrobat 5) to users with free form fields the user can fill out. Users have been complaining that when the users upgrade to Acrobat Reader 9 the begin to see a message that "Some features are no longer supported..." and the ability to save a local copy of the file is no longer available. I have 2 questions.
    Was the ability to save a local copy of a form with user-entered data ever a feature of Acrobat Reader?
    Is that an issue that can be corrected by creating the form with the Acrobat 9 Life-Cycle engine or is that a feature that has forever been removed from Acrobat Reader for security or other reasons?
    Thanks in advance!
    - Yohancef

    No I was referring to filled in forms.
    So to be clear, the ability to save user filled in information in a form to your local machine as a PDF through Acrobat Reader IS possible, but has to be enabled by opening the form in Acrobat (9 for example) and enabling some feature to allows Reader users to save the information to the PDF file. This feature is limited though and has a 500 use limit per form.
    Does that sound correct? Do you know the name of the feature?
    Thanks!
    Yohancef Chin
    Date: Mon, 2 Nov 2009 16:49:54 -0700
    From: [email protected]
    To: [email protected]
    Subject: Acrobat Reader 9 with an Acrobat 5-8 Created Form?
    There may be some features that are not supported any more but you may not be using them. That message is just a general warning.
    As far as saving the filled in form, Reader on it's own has never been able to do it. You would need the newer version of Acrobat to open and enable these forms so that Reader users can save them. Be warned that this feature is meant for small-time use and has a usage limit of 500 submissions per form. You'll want to read and undestand the EULA before planning on using it.
    Or do you mean that they cannot save the unfilled form either?
    >

  • Print with only script.

    I use do not to make the print button can, i print with only script.
    Is this possibility??
    if this is possibility, please informs the method to me...

    Not sure what you are asking but I think you are asking if you can print through script. If that is the question then the anwser is yes. In the My Favorites library there is a print button configured and ready to be used. Simply drag and drop it onto your convas and you are ready to go.
    Paul

  • Acrobat Reade x on Printing with ghost script 8.54

    Hi,
    1)open a pdf file with adobe reader x
    2) Then select " print" using Ghost script 8.54 version
    3) Ghost script throws "stack overflow" and "offending Command" error message
    this does not happen ,with earlier version of Adobe reader
    Can any one reply the reason for this behaviour.
    Thanks,
    A.Aravind

    We do not know what platform you are running your software on. Personally, I think this is a question for Ghostscript support, not Adobe Reader. You can try to print to a postscript file, then run Ghostscript on the postscript file. If you have the same error then post a bug report here:
    http://bugs.ghostscript.com/

  • Acrobat Reader X / 10 - javascript console problem / crash

    Hi,
    I develop adobe interactive forms and need javascript console badly!
    My system:
    Windows XP Prof.
    Acrobat Reader 10 (free)
    Internet Explorer 8
    Adobe Livecycle Designer ES 9 (latest version)
    The javascript console works just fine if I start an adobe form "native" = with Acrobat Reader X directly.
    But if I use Adobe Livecycle Designer (latest version) [the issue also described here], the console just crashes / disappears right after it started.
    The same happens if I open the pdf-file (adobe interactive form) with Internet Explorer.
    E.G:
    - When using Acrobat Reader "native":
                 console will open up on javascript syntax errors or by klicking a button (   javascript = console.show();    )
    -  When using Internet Explorer or Adobe Livecycle Designer:
                  the same pdf file cannot view the javascript console. it just "disappears immideatly" / crashes
    There is any technical support for Acrobat Reader expect this forum - so I was told when I called adobe hotline.
    I hope anyone could actually help me here.

    Hi,
    Don't open the console just the reader application. and then open the console from your script as you do.
    I have noticed in the past that sometimes the console appears for a very short period of time and then vanishes and this appears to be caused by the console window being associated with the open Adobe Reader application ( when it has no documents open) rather than the open PDF file in the preview or browser.
    Just a thought
    Malcolm

  • Using Acrobat Object in InDesign Javascript Script

    Hi there,
    for a current job, I would like to replace pages in a PDF document right after I have exported the pages from InDesign. The export works well, but now I need to instantiate an acrobat object in my InDesign Script. At the moment, I only have Photoshop and Bridge objects available in my ExtendScript IDE. Is there any way to instantiate a Acrobat object in InDesign Script?
    I use InDesign CS3 and Acrobat 8 on a Macintosh computer.
    Any help would be great!
    Thanks a lot in advance!
    Greetings
    Mimi

    I do not believe this can be entirely done from within JavaScript. You could use doScript to call a script in a different language that is capable of interacting with Acrobat.
    Dave

  • Acrobat Reader XI with Acrobat 8 Pro on one machine

    I want to install Acrobat Reader XI on a machine that has Acrobat 8 Pro installed. I need the Acrobat 8 for my old version of AutoCad but I also need to use Acrobat Reader XI. Is it possible to have these two on one machine? Is there any special setup to make them compatible? Thanks

    It would either be Acrobat or Reader, not Acrobat Reader (that went about after AA 5). Reader XI can be run with AA 8, but you may periodically have to tell it which to open a PDF with. Using both can mix up the OS as to which it should use. That is the main problem I am aware of. If you meant Acrobat XI, then there may be an issue with the print drivers. You may have to play some file name changes and such for Acrobat 8 before you install Acrobat XI if that is the case, but the name changes may cause other issues based on how you are using the software. If it is AA XI, I would check to be sure that this version is not compatible with your CAD before trying the 2 version route.

  • Acrobat reader printing garbage characters

    Whenever I print using Acrobat reader default characters print as garbage, even when printing using "Print as Image".  Print preview looks fine but printer page shows mostly garbage characters.  For example, when printing the Sunday Crossword puzzle from the Washington Post the numbers in the gird print fine but the clues and things like Across and Down headers print with garbage characters.  This happens regardless of whether the document is printed from the Reader directly or from within a browser.  I've used IE8, Firefox and Chrome and get the same result.  The same problem exists regardless of which of my 3 printers I use (HP1020, HP Photosmart 8250, Brother MFC-3740W).  Same type of problem happens regardless of what pdf file I try to print.  Print preview always looks fine.  Printing the same files from my other PC comes out with no problem.  The problem system is running Windows 7 64-bit and problem only started recently, things used to print fine.

    In the meantime you will likely find that the fonts are not embedded or you are not sending them to the printer. Reader has not been called Acrobat Reader since version 5. The name was changed to just Adobe Reader to avoid this confusion. Acrobat is the full product with a $$ value to purchase.

  • Acrobat reader X with thunderbird under windows 2008 server

    Hi,
    i use acrobat reader X under windows 2008 R2 . My Mailclient is thunderbird.
    I get an error when trying to send an E-Mail. "Acrobat could not get a connection to your e-mail programm".
    I defined thunderbrid as the standard mailprogramm under START->CONTROLPANEL->STANDARD-PROGRAMMS
    I already tried to google the solution, but the only one i found was for Windows VISTA and Windows 7. There, you have not only to define the STANDARDPROGRAMM, you either need to make a change on "default programms and computerstandards" which is missing in windows 2008 R2
    Can anyone please tell me how to use acrobat with thunderbrid in a windows 2008 environment????
    Thank you

    Hi Michael,
    sorry for using the wrong forum. I'll post my question to the Reader board ...
    To answer your question. That was my idea too, but it is not possible to copy a whole profile. They are a lot of other problems if you do that. I didn't find the settings only. may it would be enough to copy the settings for the reader.
    Best Regards,
    Markus

  • Acrobat reader crashes with C++ runtime

    When i downloaded Acrobat Reader 9 i am getting a C++ runtime error. The problem happens because we are redirecting the Application Data on all of our machines. If i temporally map application data to c:\whatever it does not bomb out with the C++ runtime error. I can not stop the redirection because in our environment we use citrix and we want the users experience on the citrix servers and there desktops the same. Has anyone else seen this and is there a fix.
    Thanks,
    Ryan Burney

    This has been going on for ages. From my understanding v9.0.0 has an issue running on a domain with redirected folders, in particular the appdata folder. For some reason, if this folder has a UNC path not a drive letter then version 9 (Reader and full version) crash on launch. There have been a number of posts around the web about this since v9 came out. I'm surprised that Adobe havent sorted this out, cant be that hard a fix and I would assume that Adobe corp HQ run a windows domain with folder redirection in place
    We're still running 8.1.3, and waiting patiently for 9.0.1

  • Acrobat reader printing at runtime

    Hi All,
    How to call acrobat reader at printing runtime for printing .pdf file?
    Thanks,
    Message was edited by:
    p.v.k.k

    Could any one help me?
    Thanks

  • Acrobat Reader crashes with patch 108652-40

    Hello,
    I just installed Solaris 8 on a sun4u machine. After that I installed the recommended patches cluster. When trying to start Acrobat Reader 4.05 the CDE session crashes. After deinstalling the patch 108652-40 Acrobat Reader is working well again. Any hints where this behaviour comes from or what to do?
    TIA
    Guido

    This has been going on for ages. From my understanding v9.0.0 has an issue running on a domain with redirected folders, in particular the appdata folder. For some reason, if this folder has a UNC path not a drive letter then version 9 (Reader and full version) crash on launch. There have been a number of posts around the web about this since v9 came out. I'm surprised that Adobe havent sorted this out, cant be that hard a fix and I would assume that Adobe corp HQ run a windows domain with folder redirection in place
    We're still running 8.1.3, and waiting patiently for 9.0.1

  • Acrobat Reader Prints Strange Characters

    The Reader prints files in a strange character encoding which looks like nothing - )*&#$@^(%)&%@#?><{::} and characters you cannot find on your keyboard. When printing from other PC's it's working perfectly. It does that with all languages and all PDF files.
    Here is a scanned result of the printing:
    [URL=http://www.hotshare.net/image/100994-1898931441.html]img041.jpg (377.73 KB)[/URL]
    http://www.hotshare.net/image/100994-1898931441.html

    busoppreviews: As I have written before - I have a printer connected to PC via USB, there is no network involved, only mechanically moving laptops.
    PS Why on earth I can't reply on these forums using Firefox?

  • Acrobat Reader X with MAC Server based User Profiles

    Hello Forum,
    I'm a bit in trouble with Acrobat Reader X (10.0.0.3) on my Mac. We are using server based user profiles for the whole network. (SL Sever and SL Clients 10.6.7)
    Installing the Reader X has finished successfully. If I'm starting my Reader, a requester is popping up, asking me if Acrobat should be the default application for PDF files or not. Pushing any button causes the application to terminate after some seconds.
    Due it's working with a local profile without any errors I think the problem is the server based user profile.
    Any ideas how to solve this problem? Switching to local profiles is not possible ...
    Best Regards,
    Markus

    Hi Michael,
    sorry for using the wrong forum. I'll post my question to the Reader board ...
    To answer your question. That was my idea too, but it is not possible to copy a whole profile. They are a lot of other problems if you do that. I didn't find the settings only. may it would be enough to copy the settings for the reader.
    Best Regards,
    Markus

Maybe you are looking for

  • Interactive booklet file missing: How do I get it back again?

    I have the album "Highway Companion" Deluxe version by Tom Petty. I recently discovered that there is an interactive booklet that is is a movie file but the file contains no data. It's just a black/blank screen. I checked my purchase history for the

  • Avoid Purchase Order without Quality info Record

    Hi All, I am facing the problem, i.e i want to avoid creating purchase order if the quality info record is not maintained. Can we do it ?????, If yes please suggest me how to go about it & what are the control points for the same. Please reply ASAP.

  • Error while calculating variances for production order

    Hi Gurus, while calculating variances for production order i am getting the following error "Cannot calculate scrap variances" ( Error message) " no standard value estimate for material" (Warning message" A standard cost estimate exists for the mater

  • Dynamic ACTION creation

    Hi Everybody , I am working on dynamic creating ui ELEMENTS . iI want to create buttons dynamically in tab strip . And i dont know how many buttons i have to create also in design time .so i want to create actions also dynamically and assigneg action

  • Why do we all moan acout the speed on asdl broadba...

    You know in this day and age we should all know that broadband is a tricky buisness where diffrent companys have good working lines and some are upgrading others dont.The main thing with all is the wires that connect our houses from there exchange.Fr