Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to print PDF silently

15,796 views
Skip to first unread message

Roger Douglas

unread,
Jul 17, 2003, 4:50:01 PM7/17/03
to
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. That is, no popup dialog to be shown, preferably not even the
printer dialog (we will tell 'it' where to print to.

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.


Alex Cherepanov

unread,
Jul 17, 2003, 6:12:23 PM7/17/03
to
Roger Douglas wrote:

> 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.


Roger Douglas

unread,
Jul 18, 2003, 12:25:15 AM7/18/03
to
Thanks for this, I have found answers elsewhere - although with
side-effects.

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...

Philip A. Viton

unread,
Jul 19, 2003, 11:30:17 AM7/19/03
to
In article <eGKRa.84408$JA5.1...@news.xtra.co.nz>,
Roger_...@hotmail.com says...

> Thanks for this, I have found answers elsewhere - although with
> side-effects.
>
> 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.
> 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.

I think /h will close acroread after the print job completes.

--
Philip A. Viton
Ohio State University

chipset4010

unread,
Jan 31, 2014, 5:54:51 PM1/31/14
to
Or You can simply try a library like i do not know pdfprinting.net i was the simplest way for me..

http://www.pdfprinting.net/


dipa...@gmail.com

unread,
Jun 5, 2014, 3:47:23 PM6/5/14
to


I think this one (ActiveTree SmartJPrint) will certainly meet your requirement and it is Free!
http://www.activetree.com

dipa...@gmail.com

unread,
Dec 16, 2014, 3:26:52 PM12/16/14
to
With ActiveTree solution neither you host the software nor your PDF have to be at a particular location. As long as the PDF is accessible from your local computer or through a web URL, following out of box printing (and PDF viewing) seems very straight forward.


(Local PDF files)
https://www.activetree.com/jprint/silent_print_pdf.jsp?DOC_LIST=[c:/docs/test.pdf]

(Remote web server PDF files)
https://www.activetree.com/jprint/silent_print_pdf.jsp?DOC_LIST=[http://myhost.com:port/docs/test.pdf]

Peter Flynn

unread,
Dec 18, 2014, 6:22:34 PM12/18/14
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm
>
still baffled by the Subject. I wasn't aware that PDFs made any
noise when printing...

///Peter

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUk2G4AAoJEHt9ZfbX6inQmVcH/2VsX7FJOwKh/yt/2LbRqe2f
ZQocD0PAWz88Ak6bzT1DAvqBNfgvoBx4Ow5sqGFr79TsPsjYlbVS8JB7KsakSkOo
gqDu3E92vk8YRxPRTR/ev77WVvdADgsjbctwT/zWlMH5xqdvLw2FdIympZgM+EjU
Nm7aAKVD4YZTCk77+CLQvMelh3GFJ/zLCejLwrm4UqMUtxZhZqGsvmRmeXigK1ch
8gnz9KAVBr5NJ0jB9kCdsA9O4olyLOg3+6WncN9MC+pO0EF6pOumNFSl9ewzPQiB
R4zIfqMDSKWu0+YV9eootQhcujRRc/jNViDMFRpztkBno0Laj6dxPoeLb0HBews=
=7qNt
-----END PGP SIGNATURE-----

metai...@gmail.com

unread,
Mar 22, 2017, 6:30:22 AM3/22/17
to
Sir few days back when i tried it was working it when to the default printer when I'm trying to run it's not able to print


Please help !

merl...@gmail.com

unread,
Oct 21, 2017, 11:17:09 AM10/21/17
to
it closes documents instances, but not acrobat itself

pinda...@gmail.com

unread,
Feb 6, 2018, 8:57:18 AM2/6/18
to
Op zaterdag 21 oktober 2017 17:17:09 UTC+2 schreef merl...@gmail.com:
This will help:

start acrord32 /S /O /H /T <complete filename with path> <printername or share>
timeout /t 9 /nobreak>nul
taskkill /F /IM AcroRd32.exe /FI "USERNAME eq <your username>">nul


0 new messages