How to silent print the PDF document using ASP.NET MVC PDF viewer?
PDF Viewer
The ASP.NET MVC PDF Viewer control supports viewing, reviewing, and printing PDF files in ASP.NET MVC applications. The hyperlink and table of contents support provides easy navigation within and outside the PDF files. The form-filling support provides a platform to fill, flatten, save, and print PDF files with AcroForm. PDF files can be reviewed with text markup annotation tools.
Silent printing the PDF document
PDF viewer does not support Silent printing the PDF document in MVC platform. However, as a workaround you can print the PDF documents without showing print dialog box using Windows forms (Syncfusion.PdfViewer.Windows ) reference in MVC project.
C#
//Initializes the PDF viewer PdfViewerControl viewer = new PdfViewerControl(); //Loading the document in PDF viewer control viewer.Load(Server.MapPath("~/Data/F# Succinctly.pdf")); //Initializes the print dialog box PrintDialog dialog = new PrintDialog(); dialog.AllowPrintToFile = true; //Sets the PDF viewer print document to PrintDialog's document dialog.Document = viewer.PrintDocument; //Prints the PDF document dialog.Document.Print();
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/SilentPrinting1786629339
Refer here to explore the rich set of PDF Viewer features.
An online demo link to view PDF documents using Syncfusion PDF Viewer.
Conclusion
I hope you enjoyed learning about how to save and load diagram from Database in ASP.NET MVC.
You can refer to our ASP.NET MVC PDFViewer feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC PDFViewer example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!