Command line printing - AdobeReader left open

Hello everyone,
I've a problem by printing pdfs using the command line. My VB-script contains a code line like following (including the quotation marks for document and printer):
process=myShell.Exec("c:\Program Files\Adobe\Reader\Reader 8.0\AcroRd32.exe /t "c:\test.pdf" "myprintersname")
(print test.pdf on myprintersname)
This command runs nearly perfect; after printing the AdobeReader-window left open. I tried to use an Application.Activate(process.ProcessID) followed by SendKeys("%{F4}") to close the front window. My AdobeReader-window won't come to foreground and so the active window (e.g. firefox) gets the ALT-F4-shortcut and asks for closing.
Is there another command line parameter or solution available to close the named pdf-document AND AdobeReader after printing the document?
Thanks for help
gerald
UPDATE: I've found a solution for this problem. After executing the command line (process=myShell.Exec.......) there's a "script sleeping time" needed, e.g. WScript.Sleep 10000 (wait 10 sec) followed by the command "process.Terminate". Then AdobeReader will be terminated and script goes on...

Command line parameters are sparsely documented and are officially not supported. What is documented can be found here: http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pd f
I've not seen anything that shows what you want to do.

Similar Messages

  • Command line: Error: unable to open '/Applications/flex_sdk_4\frameworks\flex-config.xml'

    Hi,
    I am new to flex. I am trying to use the xmp sdk to create custom file info panels in photoshop.
    I am going through the example show in the adobe documentation 'Building a panel with Flex SDK'
    I got any running and I got all the files setup in the proper folders but I cannot for the life of me figure out why I keep getting this error.
    Buildfile: /Volumes/three/2011/XMP/test project/build.xml
    clean:
    buildPanel:
         [echo] --> Panel 'Test2'
        [compc] Adobe Compc (Flex Component Compiler)
        [compc] Version 4.5.1 build 21328
        [compc] Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
        [compc] command line: Error: unable to open '/Applications/flex_sdk_4.5\frameworks\flex-config.xml'
        [compc] Use 'compc -help' for information about using the command line.
    BUILD FAILED
    /Volumes/three/2011/XMP/test project/build.xml:20: compc task failed
    Total time: 616 milliseconds
    thanks,
    digitalkyle

    can you tell us where your services-config.xml file is
    located. can you make sure it is right under the "src" folder of
    the Flex Builder project.
    Hope this helps.

  • From the command line, print only page 2 and 3?

    What is the syntax for the command line, for print ONLY page nr° 2 and nr°3 of a pdf file, skipping page nr°1?
    Thanks

    Not possible.

  • Command line printing

    Are there security setting that might disrupt printing in MS Server 2005-2008?
    My problem is I am attempting to print via the command line and it functions fine one Windows 7 but not one Server 2008 using the same command and arguments.

    lp does not support paper size option that i know of. I believe the option to be set might be on the printer where you need to set a default paper size to be used. The gui works because it sends paper size request based on Page Setup.
    I could be wrong and you might need to define the -o to set width and height maybe.
    -o options
    Different print options:
    nobanner Does not print the banner with username and filename information.
    nofilebreak Does not start each new file on a new line
    cpi=pitch Characters per inch.
    lpi=lines Lines per inch (default=6)
    length=inchesi The number of x printed lines per inch (the i must be at the end.)
    lenth=linesl Prints pages that are x lines long(must have l at the end.)
    width=chars Prints pages the max of chars per line
    width=inchesi Prints pages the max of x inches wide.
    I don't use this command all to often so not sure but maybe this will help.

  • Sending escape sequences to control command line printing

    Hello Java Community,
    I am interested in printing PDF files programatically by using a thread that used the runtime environment and the sending a command to print the file.
    I hava managed to print files directly to the printer using "cmd /c acrord32.exe /h /p filename.pdf" thanks to iText FAQ.
    The problem is that when I try sending the job to an Epson LX 300 printer, the job prints in letter quality while my intention is to print in draft mode.
    I imagine that this problem could be resolved by passing escape sequences to set draft mode printing programatically so as to speed up my printing.
    Anyone who can help me on how to achieve this.
    Will appreciate your help.
    Charles

    Reply 1 of http://forum.java.sun.com/thread.jspa?threadID=5226995&messageID=9958472

  • Command line printing - PDF to Postscript

    I wish to convert a PDF file to postscript using the windows command line suppressing all messages.
    Example: Acrord32.exe samplepdf.pdf c:\output\samplepdf.ps
    Are there any command line options to perform this conversion?
    Many thanks.

    Command line arguments arew unsupported, but documented in the Acrobat
    Developer FAQ
    Aandi Inston

  • Does anyone know about command line printing?

    I have been trying to get my company's point of sale system moved from an old windows machine to a mac mini server. I have been successful with the exception of printing. Basically, as I understand it, the database we use sends a print command to the printer like lp -d "printer name". The problem is the HP laser printer receives it and flashes the orange light instead of printing. To get it to print we must push the green button on top of the printer to get it to print. When it prints everything is fine. I have two HP laser printers that do not have this problem and work correctly. They are Laser Jet P4015 and a M1212nf. The ones that don't work correctly are Laserjet P1505n, P2055, & P1022n. They are all network printers and work fine for regular printing like a word doc or web page. Any help is appreciated.
    Also, I have some impact printers both 9pin & 24pin that seem to be almost impossible to configure with OSX.  Any tips there would be great as well. 
    Thanks.

    Any thoughts on what to look for?
    The basic problem as I see it is that all the laser printers with which I am familiar do not cope with printing anything other than a page at a time. That probably explains the orange light - I assume that indicates the printer has received data, but it will not do anything with it until an end of job PostScript or PCL command is sent, and that command is missing from the jobs being sent to the P1505n, P2055, & P1022n.
    There may be a way to append that command to the job's end using the POS software you are using. For that PAHU is much more likely to suggest something useful than I.

  • How do I open a PDF to a specific page via the command line?

    Several questions about opening PDFs from the Mac OS X command line:
    1) How do I use the "open" command to open a PDF to a specific page? (I know I can open a document via: open doc_name.pdf)
    2) How do I use the "open" command to pass multiple arguments (page no, zoom scale, view mode, etc...) to open a PDF file in a specific manner?
    3) Does Preview handle the same parameters as Acrobat Reader? If not, what are the differences in options?
    I've spent hours searching for this answer and have come up dry. I've downloaded Adobe's "PDF Open Parameters" document -- it lists all of the parameters I need, however I can't get any of them to work from the command line.
    My goal: Open a PDF from the command line to a specific page. At first glance, I thought this would be simple to do and find -- however, after a lot of searching I haven't found an example on how to do it.
    Anyone have any experience doing this, and care to share?
    Much appreciated! ---> Kelsey

    I don't know of any way to do what you want using the 'open' command. It can probably be done with Applescript, which you could call from a shell script. The Preview application doesn't seem to be scriptable. I don't use Acrobat, so I can't tell you anything about that. Looking through the dictionaries of the apps I do have, it seems that Skim (another PDF viewer) has an AS 'page' class. Below are a couple of links that may get you started. Look for more specific guidance in Applescript forums.
    http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript
    http://links.tedpavlic.com/shell_scripts/skim

  • Reader 10.1.4. Printing PDF by command line

    Hi
    In an application I have developed I print PDF files to a defined printer using command line, such as
    "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\acrord32.exe" /N /T "myPDFfile.pdf" "\\servername\printername"
    I have noticed a change of behaviour with Reader 10.1.4 to previous versions.
    To test locally I share a local printer (e.g. share name "bobsprinter") connected to my machine ("bobsmachine") and include it in the command line as follows
    "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\acrord32.exe" /N /T "myPDFfile.pdf" "\\bobsmachine\bobsprinter"
    I have noticed that with Reader 10.1.4 a print job is no longer submitted, unless I take out the machine name and just leave in the shared printer name:
    "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\acrord32.exe" /N /T "myPDFfile.pdf" "bobsprinter"
    Where it then works OK.
    Question: Why would there be this change of behaviour in 10.1.4? Is there anything I need to consider? I have not come across anything in the release notes.
    I have noted that on my customer's site my command line (with machien and printer name) still works OK with 10.1.4. Maybe because the shared printer is on another network?
    Many thanks in advance.

    Hi Bob,
    Thanks for reporting the problem faced by you. My investigations suggest that command line printing behavior between Reader 10.1.3 and 10.1.4 is still the same.
    It prints the document on Reader 10.1.3 and 10.1.4 only when you do not specify the servername(localhost) on command line. However, It prints both with/without using the servername when Acrobat is used.
    Thanks,
    Atul Agarwal
    Adobe Systems

  • Open *.ste file with a command line

    Hello,
    Is there a way to import by a command line like :
    quote:
    dreamweaver -open mysite.ste
    I have a liste of *ste, and whant to run a script that
    automaticly import and open the site in DW. Can we do that or there
    is a solution to avoid to be inside the site panel to import an ste
    Thanks...
    Maelvon

    If you ever find this answer, it would be extremely useful to me right now.

  • CUPS print job options fail when called from lp (UNIX command line)

    Under Leopard this command-line print request fails to respect the specified job options:
    lp -o number-up=2 -o page-border=double <filename>
    Though it worked great in Tiger, the number-up and page-border job options are now disregarded. I have tried lots of things (and wasted lots of paper) such as setting them permanently with lpoptions (and they do appear changed when the lpoptions command is repeated), using lpr instead of lp, reinstalling the printer via the CUPS localhost web interface, enabling non-Bonjour scanning with the hack to the CUPS preference file, deselecting "Last Printer Used" for the default printer in the System Preferences -- nope.
    I have not tried other job options; I assume that whatever is breaking these two is breaking all the others, and even if it isn't, these two are what I want.
    Is something new in Leopard overriding lpoptions job options? How do I make it stop? It is sooooo aggravating when something that used to work fine breaks. The printer is an HP LaserJet 4000N connected by Ethernet and discovered with AppleTalk.
    Thanks for any advice!

    Thanks John, I did search but somehow missed that thread.
    However it did not help. With or without the "-p printername" argument lpoptions does make a persistent change to its own data:
    +$ lpoptions+
    +media=Letter sides=one-sided finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=2 auth-info-required=none job-sheets=none,none printer-info=Barrow printer-is-accepting-jobs=1 printer-is-shared=0 printer-location='Local Zone' printer-make-and-model='HP LaserJet 4000 Series' printer-state=3 printer-state-change-time=1209495301 printer-state-reasons=none printer-type=2134228 page-border=double+
    You can see that the printer "Barrow" has remembered "number-up=2" and "page-border=double". Regardless if I give any of these commands:
    +lpr <filename>+
    +lpr -P Barrow <filename>+
    +lp <filename>+
    +lp -d Barrow <filename>+
    none of them show the results of these option settings (and somewhere in the forest another tree is cut down).

  • Command line for Acrobat Reader

    Hello
    In an application in VB.NET, I throw open a PDF file using the reading program by default in Windows
    Is there a command line that can be open it without the left column?
    Thank you for your response
    Claude Azoulai

    I sort my problem, this may be not the best solution, <br /><br />I review last few replies, try to understand what go wrong, it may be 7.0.9 weakness - <br /><br />mysolution:<br />install xwing on my PC<br />login AIX 5L server by putty<br />#export DISPLAY=<myipaddressxxx.xxx.xxx.xxx>:0.0<br /><br />then, <br />#acroread -toPostScript a.pdf a.ps<br /><br />Works:-)

  • Passing command line unicode argument to Java code

    I have to pass command line argument which is Japanese to Java main method. If I type Unicode characters on command-line window, it displays '?????' which is OK, but the value passed to java program is also '?????'. How do I get the correct value of argument passed by the command window? Below is sample program which writes to a file the value supplied by command line argument.
    public static void main(String[] args) {
    String input = args[0];
    try {
    String filePath = "C:/Temp/abc.txt";
    File file = new File(filePath);
    OutputStream out = new FileOutputStream(file);
    byte buf[] = new byte[1024];
    int len;
    InputStream is = new ByteArrayInputStream(input.getBytes());
    while ((len = is.read(buf)) > 0) {
    out.write(buf, 0, len);
    out.close();
    is.close();
    } catch (Exception e) {
    e.printStackTrace();
    }

    To clarify a little:
    If the "command line" means a console opened from the operating system, then the problem is that your machine's operating system can't handle the Unicode characters you want (at least, not in the console mode). If you can't configure the machine to accept Unicode on the command line, you'll have to investigate some other means of passing the argument to your app, as the other poster mentioned.

  • Command Line and Resource Manager

    When using the command line to compile a Robohelp project, is there a way to update the shared resources within the project before generation?
    For example, say you have Project1 and it is using snippet1 in that project. However, snippet1 has been modified in the resource manager (just say, for argument's sake, that snippet1 is also used in Project2, and you modified the snippet there and synced it to the resource manager). When you do a regular command line compile, the snippet is not updated.
    Is there a way to sync the snippets and images from the resource manager in the project before doing the command line compile (other than opening the project and syncing manually)? After all, if I have to open the project, there's no reason to command line compile since I'm already there and can just compile it from the project.
    Thanks!

    I don't think that is possible as, correct me if I am wrong, even within RoboHelp the images don't get updated automatically. It's something you have to do.
    It's a good point though so I suggest submitting a feature request.
    The more people who request a feature, the more likely it is to be actioned. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • The -profile command line switch is not passed to the windows 7 jumplist properly.

    I start Firefox with a shortcut like this one: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe -no-remote -profile SomeProfileButNotTheDefaultOne -win7appid SomeUniqueAppId".
    When pinning to the Windows 7 taskbar, the jumplist items "New Tab" and "New Window" ignore the given command line parameter -profile and open a new tab or window with the default profile instead of the given one.
    The program itself handles the parameters correctly; alas, the jumplist entries do not. Is there any way to convince the jumplist to use the given command line parameters as well?

    As I said: "The program itself handles the parameters correctly." -profile (lowercase) itself works fine. Apperently the jumplist ignores ''any'' command line parameter but starts a new process with the "-browser" parameter.

Maybe you are looking for

  • Downloaded ios8 and ipad says my TV is no longer compatible  with it

    Downloaded ios8 to my iPad on 18 September in response to a prompt and then when I plugged it into my television (HDMI2 port), the TV got no signal and a message came up on the iPad saying the device (i.e. TV) was not compatible with it. There was no

  • I have a new mac book pro. Will my old jam packs work with the new garageband?

    I have a new mac book pro. Will my old jam packs work with the new garageband?

  • Annoying white box on black background

    My HTML page has a black background. My SWF menu has a black background from the very first frame. When the page loads, the area size of the SWF is white over the background until the SWF starts loading. Is there any way around this? It would be nice

  • AUTO TAPE EJECT and NIGHT BACK-UPS PROBLEM

    Hello I have installed OEL Linux and I have to configure a tape which will be used to back files automatically during the night. I have one problem which is I do not know where to start.. My list of requirements is as below: Daily back-ups automatica

  • How to change the group asset in asset master

    Dear ALL, If i want to change the group asset in asset master it is appearing in disable mode.Kindly suggest how to make in enable mode. I check the configuration settings and group asset make it is an optional filedl But still it shows in disable mo