Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

printing, kill OK window

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
hank1
Asked:
hank1
  • 2
1 Solution
 
joesixpackCommented:
What platform??????

Please!!!
0
 
hank1Author Commented:
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
 
sherwoodCommented:
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
 
hank1Author Commented:
Per Acrobat - command line printing from reader not
supported.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now