Print PDF file in C# without requiring adobe reader

Posted on 2006-04-24
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

    LVL 32

    Expert Comment

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

    Author Comment

    jhance, thanks for the link, does seem pretty easy but has an $899 price tag!
    LVL 12

    Expert Comment

    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

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

    Assisted Solution

    Have you looked at the pdf995 suite of software?  It is something like $9 and allows a huge range of options.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Cisco switch with no IOS installed 2 46
    MaxSpan challenge 9 50
    How to add a m3u Playlist to IPTV on PLEX 7 501
    Path of Workbook 3 30
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    733 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

    21 Experts available now in Live!

    Get 1:1 Help Now