public void Print(string username, byte[] data, string printername, string jobname, PrintTicket ticket)
        {
            PopplerGDIPrintJob pj = new PopplerGDIPrintJob
            {
                PrintData   = data,
                PrinterName = printername,
                PrintTicket = ticket,
                JobName     = jobname,
                RunAsUser   = username != null,
                UserName    = username
            };

            pj.Print();
        }
        public void Print(string username, byte[] data, string printername, string jobname, PrintTicket ticket)
        {
            PopplerGDIPrintJob pj = new PopplerGDIPrintJob
            {
                PrintData = data,
                PrinterName = printername,
                PrintTicket = ticket,
                JobName = jobname,
                RunAsUser = username != null,
                UserName = username
            };

            pj.Print();
        }