There appear to be a couple ways:
1) command line run AcroRd32.exe with the filename.
But this leaves AcroRd sitting in memory gobbling up a HUGE number of Mbs,
and it appears in the Taskbar for the user.
2) run it inside a browser. But that seems like a kludge.
Requirements are:
- small foot print as it will need to work inside a Citrix environment.
- the usual, fast, reliable, cheap.
- a print server would be acceptable, but prefer a client-only solution.
A search on Google has found few tools - can anyone introduce me to more??
Silently print PDF from within a browser:
http://cwashington.netreach.net/depo/view.asp?Index=793&ScriptType=jscript
Print PDF in batch mode from command line:
http://www.pdfzone.com/toolbox/pdprint.html
Two products that MIGHT do the trick here:
http://www.activepdf.com/en/Products
Any hints appreciated.
Thanks, Roger.
> This might seem an odd request, but we need a way to print PDF files from
> within an application (.Net C#) silently to a printer of the user's
> choosing.
Consider Ghostscript. http://www.artifex.com
> - small foot print as it will need to work inside a Citrix environment.
About 5MB for the interpreter + VM used by PS program
+ raster buffer if any
> - the usual, fast, reliable, cheap.
Transparency still need some work, the rest is fine.
Ghostscript is available as free software and as OEM product.
> - a print server would be acceptable, but prefer a client-only solution.
It can be run on the client or on the server.
AcroRd32.exe filename - Executes the Reader and displays a file.
Other options for the command line are:
AcroRd32.exe /p filename - Executes the Reader and prints a file.
/n Launch a separate instance of the Acrobat application, even if one is
currently open.
/s Open Acrobat, suppressing the splash screen.
/o Open Acrobat, suppressing the open file dialog.
/h Open Acrobat in hidden mode.
AcroRd32.exe /t path printername drivername portname - Initiates
Acrobat Reader, prints a file while suppressing the Acrobat print dialog
box, then terminates Reader.
The four parameters of the /t option evaluate to path, printername,
drivername, and portname (all strings).
printername - The name of your printer.
drivername - Your printer driver's name. Whatever appears in the Driver Used
box when you view your printer's properties.
portname - The printer's port. portname cannot contain any "/" characters;
if it does, output is routed to the default port for that printer.
You get at these quite easily in .Net programmatically.
If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
command lines.
However, this does NOT seem to close the reader after it has finished...
Chow.
"Alex Cherepanov" <alex...@quadnet.net> wrote in message
news:bbFRa.22610$kI5....@nwrddc02.gnilink.net...
I think /h will close acroread after the print job completes.
--
Philip A. Viton
Ohio State University