Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print Pdf in C# [closed]

I'm new to c#. I was looking all over the net for tutorials on how to print pdf, but couldn't find one.

Then I thought, is it possible to read it using itextpdf, like mentioned here

Reading PDF content with itextsharp dll in VB.NET or C#

then print it. If so, how?

like image 377
Corbee Avatar asked Apr 06 '11 12:04

Corbee


People also ask

Is free Spire PDF free?

Our Free Spire. PDF is totally free without any warning message for your commercial and personal use.


1 Answers

A very straight forward approach is to use an installed Adobe Reader or any other PDF viewer capable of printing:

Process p = new Process( ); p.StartInfo = new ProcessStartInfo( ) {     CreateNoWindow = true,     Verb = "print",     FileName = path //put the correct path here }; p.Start( ); 

Another way is to use a third party component, e.g. PDFView4NET

like image 148
PVitt Avatar answered Oct 08 '22 13:10

PVitt