I am using Groupdocs.viewer to view pdf in winform using html.
is there any way I can print the pdf document
1 Like
You can print the document using PrintDocument or PrintDialog tools in Windows Form application. API doesn’t provide any built-in feature for document printing.
It says here .NET Document Viewer API, Render PDF Word Excel Image HTML Diagram
“Detect and print PDF documents with printing restrictions”
Still no printing available? We would like to print PDF documents from windows service externally. would be nice to have a method in DLL for that.
I’m sorry for the inconvenience but it was a mistake in the documentation that has been fixed now. The Viewer does not support printing but can be used to convert a file to some commonly supported format e.g. PDF and then printed.
using (Viewer viewer = new Viewer("sample.docx"))
{
PdfViewOptions viewOptions = new PdfViewOptions("output.pdf");
viewer.View(viewOptions);
}
Please let us know if you have any questions.
Have a nice day!
1 Like