Solved

printing, kill OK window

Posted on 1997-04-29
4
187 Views
Last Modified: 2010-05-18
In a script I call up Acrobat's acroread as
acroread /p fileName
to print .pdf files.  The automation stopped when
the printer dialog opens and asks if it's OK to print.
How do I kill this?
0
Comment
Question by:hank1
  • 2
4 Comments
 

Expert Comment

by:joesixpack
ID: 1203889
What platform??????

Please!!!
0
 
LVL 1

Author Comment

by:hank1
ID: 1203890
whoops - win95
Many responses about OLE but that is not an option here.
The following was collected from comp.text.pdf - but the
dialog still pops up.


--------------------------- comp.text.pdf BEGIN
Subject:
              HOW TO: print pdf files directly from the dos prompt
         Date:
              12 Mar 1997 23:38:33 GMT
        From:
              "Sal Gurnani" <skg1@cornell.edu>
Organization:
              University of California, Berkeley
  Newsgroups:
              comp.text.pdf
   References:
              1 , 2 , 3 , 4 , 5

Note: This only works for 32 bit versions of Acrobat reader on Win95/NT

To print a specific pdf file directly to a given printer, issue the
following command from the dos prompt:

Acrord32.exe /t "PDFFILE" "PRINTER" ""

Replace PDFFILE with the full path to the pdf file.  Replace PRINTER
with
the correct port for the printer.  A port can be something like LPT1: if

the printer is directly attached to your computer or of the form
\\MYNETWORK\PRINTER1 if the printer is on a network.  I belive the third

argument, specified above as double double quotes can be used to specify

print setup instructions like number of copies,etc. but I don't know
what
the correct syntax is.  If someone knows, please post the answer or send
me
email.  Be sure to put in the double quotes around each argument.

To print a specific pdf file to a file using the printer driver for a
given
printer, issue the following command from the dos prompt:

Acrord32.exe /t "PDFFILE" "PRINTER" "" "OUTPUTFILE"

PDFFILE, PRINTER, and "" are the same as above.  Replace OUTPUTFILE with

the full path to the destination file.  Be sure to put in the double
quotes
around each argument.

Calling the acrobat reader in this fashion will actually launch the
application, cause it to load the appropriate pdf file, and execute the
print operation without any user intervention so it could be implemented
as
a cgi script on a web server.

The above information was obtained via trial and error so I can't refer
you
to a sdk or manual.
--------------------------- comp.text.pdf END

Also tried that talented bunch at perl-win32-users@activeware.com
but no body even touched it (that is in itself remarkable).
A posting in in win95 general suggested a mouse redirect -
something like  acroread /p fileName < keyClickInHere.

I have this feeling the registry is involved and that dialog
box can be switched off.


0
 
LVL 1

Accepted Solution

by:
sherwood earned 100 total points
ID: 1203891
Ghostscript is available for win platforms.  Ghostscript
at the 4.01 level from Aladin understands acrobat files,
and has enough options to use for what you want.  One of the
conversions possible is acrobad to postscript.
0
 
LVL 1

Author Comment

by:hank1
ID: 1203892
Per Acrobat - command line printing from reader not
supported.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video discusses moving either the default database or any database to a new volume.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now