We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

pdf batch printing

Thread ID:





108785 May 13,2013 07:42 AM UTC Apr 19,2016 01:06 PM UTC WinForms 7
Tags: PdfViewer
Murat Turhan
Asked On May 13, 2013 07:42 AM UTC

is it possible to batch print pdf files ?
i tried silent print sample but i did not worked.

Meikanda Nayanar [Syncfusion]
Replied On May 16, 2013 04:14 AM UTC

Hi Murat,

Thank you for your interest in Syncfusion products.

Yes, it is possible to batch print Pdf files using our Essential PdfViewer. We have checked our silent printing sample and we are unable to reproduce any issue. Could you please send us the pdf documents you are trying to print. This will be more helpful for our further investigation.

Please let us know if you have any concerns.



Replied On July 24, 2013 08:15 AM UTC

before using Syncfusion, i have been using this pdf printer to print pdf in batch vb.net, but i think your product is also working well for me.

Meikanda Nayanar [Syncfusion]
Replied On July 30, 2013 04:53 AM UTC


Thank you for your interest in Syncfusion products.

We are glad to hear to hear that Syncfusion Pdf Viewer helps you print the PDF document in batch process.

Please let us know if you have any concerns.


Don Mason
Replied On April 12, 2016 08:50 PM UTC


Thank you for your interest in Syncfusion products.

We are glad to hear to hear that Syncfusion Pdf Viewer helps you print the PDF document in batch process.

Please let us know if you have any concerns.


can you please give a code sample for batch printing?
I am able to perform silent printing but I have multiple documents and need to batch them to the printer.

Thank You 

Sathish Sivakumar [Syncfusion]
Replied On April 13, 2016 04:24 PM UTC

Hi Don,                  

Thank you for using Syncfusion Products.

Printing the Document using System.Drawing.Printing is not supported in Windows Service.

The following MSDN link explains the problems occurred while Printing the document using Windows Service.


"Classes within the System.Drawing.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions."

As per the documentation, the System.Drawing.Printing namespace is not encouraged to be used within a Windows Service.

However we have created the sample for batch print the PDF Documents from the directory by Exporting the PDF document as Images from the windows service, to the local machine.

Code Snippet for Exporting PDF Documents from the directory to Metafile images in Windows Service:

string[] files = Directory.GetFiles("C:/tmp/", "*.pdf");

int pagecount = 0;

foreach (string file in files)


//create an instance for PdfLoadedDocument

PdfLoadedDocument ldoc = new PdfLoadedDocument(file);

//Load the instance of PdfLoadedDocument in PdfDocumentView to export into images


//ExportAsMetafile return the metafile images of each page of the loaded pdf document

Metafile[] images = view.ExportAsMetafile(0, view.PageCount - 1);

//save the images in local drive

foreach (Metafile image in images)

image.Save("C:/tmp/" + pagecount++ + ".emf");

**Note: Windows Service does not Support relative path to accessing the path, so we used the absolute path for accessing and saving the document.

Please find the Sample to Export PDF documents into Images using Windows services in the below link:


We have also attached the sample for batch print the exported images of the PDF documents manually from the below link:


Kindly let us know if the above scenario meets your requirement.


Don Mason
Replied On April 18, 2016 06:58 PM UTC

Thank you Sathish
but I am not sure where you got the idea that I am using a Windows Service.

I have a WPF app that presents many documents to my users via a grid.
They are able to select (multiple) documents using a select column checkbox.
I then iterate over the selections and perform a silent print using the PdfViewer to initiate the print process.
(the documents are retrieved over our network and loaded into the viewer as a stream)

My manager would like to see this sent to the printer in a batch job rather than one at a time.
Is this Possible?

Thank You.

Sathish Sivakumar [Syncfusion]
Replied On April 19, 2016 01:06 PM UTC

Hi Don,

Thank you for your update.

We have created new separate incident to follow up with your query regarding “Batch printing the PDF documents using PdfViewer control in WPF”.

Kindly login to the Syncfusion account to know more details about the incident:


Please let us know if you need further assistance.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon