PdfViewer.PrintDocument
PdfViewer.PrintDocument method
Prints the Pdf document using default printer.
public void PrintDocument()
Examples
[C#]
dfViewer viewer = new PdfViewer();
iewer.OpenPdfFile(@"d:\test.pdf");
iewer.AutoResize = true; //print the file with adjusted size
iewer.AutoRotate = true; //print the file with adjusted rotation
iewer.PrintPageDialog=false;//do not produce the page number dialog when printing
iewer.PrintDocument(ps);
iewer.ClosePdfFile();
VisualBasic]
im viewer As PdfViewer = new PdfViewer()
iewer.OpenPdfFile(@"d:\test.pdf")
iewer.AutoResize = true; 'print the file with adjusted size
iewer.AutoRotate = true; 'print the file with adjusted rotation
iewer.PrintPageDialog=false;//do not produce the page number dialog when printing
iewer.PrintDocument(ps);
iewer.ClosePdfFile()
See Also
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF