Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Nov 22, 2017 12:42 pm

Hi

we are testing a Spire.PDF to print a pdf document


we need to print to PDF document in silent mode without displaying the dialog screen

jjgonzalezpandaid
 
Posts: 3
Joined: Tue Nov 21, 2017 7:57 pm

Thu Nov 23, 2017 2:41 am

Hello,

Thanks for your inquiry.
Please use the code below to print in silent mode.
Code: Select all
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(@"F:\test\pdf\1copy.pdf");
            doc.PrintSettings.PrinterName = "xxxxxxxx";
            doc.PrintSettings.PrintController = new StandardPrintController();
            doc.Print();


Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Nov 24, 2017 8:35 am

Hello,

Greetings from E-iceblue!
Have you tried the code I provided? Your feedback will be greatly appreciated.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Nov 27, 2017 4:34 pm

it working ok

thanks so much

jjgonzalezpandaid
 
Posts: 3
Joined: Tue Nov 21, 2017 7:57 pm

Tue Nov 28, 2017 1:12 am

Hi,

Thanks for your feedback.
Just feel free to contact us if you need any assistance.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.PDF