Print PDF file in C# without requiring adobe reader

Posted on 2006-04-24
Medium Priority
Last Modified: 2012-05-05
Hello, is there a way to print a PDF file in C# directly to the printer without opening adobe reader/acrobat?  This program will likely be used in environments where the reader is not necessarily installed.

I've seen the following posted here but this depends on acrobat:
            Process p = new Process();
            p.StartInfo = new ProcessStartInfo(C:\\temp.pdf);
            p.StartInfo.Verb = "print";
            p.StartInfo.UseShellExecute = true;
            p.StartInfo.CreateNoWindow = true;

Any help or pointer to a .net control (free is possible) would be great.
Question by:ruz
LVL 32

Accepted Solution

jhance earned 1000 total points
ID: 16528992
LVL 32

Expert Comment

ID: 16528998
Sorry, I guess it's not free, but does still look easy...

Author Comment

ID: 16529654
jhance, thanks for the link, does seem pretty easy but has an $899 price tag!
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 12

Expert Comment

ID: 16531591
Adobe doesnt use the same printing commands as the rest of the world (well, as MS at least).

I found a free exe that can send pdf's directly to the printer. Use it from your code.


Not the most elegant solution but it worked for me.

Author Comment

ID: 16535116
vb_jonas, thanks, but that program essentially launches acrobat reader and sets the /t parameter to run in silent mode, which doesn't seem to work well for Acrobat 5.0+.  Also it tries to kill the acrobat.exe process with a Sleep(1000) delay but can't find it since the user could be using adobe reader or acrobat.  But if there is a command line application that can do the same functionality as this without relying on adobe reader and properly handles PDF files to the printer that would be great.

Assisted Solution

vbStriker earned 1000 total points
ID: 16558979
Have you looked at the pdf995 suite of software?  It is something like $9 and allows a huge range of options.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Six Sigma Control Plans
Screencast - Getting to Know the Pipeline

840 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