Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Printing.PrintoXPSPrinter.HideDialgo C# (CSharp) Method

HideDialgo() public static method

public static HideDialgo ( ) : void
return void
        public static void HideDialgo()
        {
            // ExStart:HideDialgo
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Printing();

            // Create PdfViewer object and bind PDF file
            PdfViewer pdfViewer = new PdfViewer();
            pdfViewer.BindPdf( dataDir + "input.pdf");

            // Set PrinterSettings and PageSettings
            System.Drawing.Printing.PrinterSettings printerSetttings = new System.Drawing.Printing.PrinterSettings();
            printerSetttings.Copies = 1;
            printerSetttings.PrinterName = "Microsoft XPS Document Writer";

            // Set output file name and PrintToFile attribute
            printerSetttings.PrintFileName = dataDir + "print_out.xps";
            printerSetttings.PrintToFile = true;

            // Disable print page dialog
            pdfViewer.PrintPageDialog = false;

            // Pass printer settings object to the method
            pdfViewer.PrintDocumentWithSettings(printerSetttings);
            pdfViewer.Close();
            // ExEnd:HideDialgo
        }
        public static void FontsNotEmbedded()