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?
Our Free Spire. PDF is totally free without any warning message for your commercial and personal use.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With