I am trying to print using Microsoft Print to PDF but when I open the generated document it is blank.
try
{
PrintDocument pd = new PrintDocument();
ProcessStartInfo info = new ProcessStartInfo(@"C:\Total\EX-2017-005632.pdf");
info.Verb = "Print";
pd.PrinterSettings.PrintToFile = true;
pd.PrinterSettings.PrinterName = "Microsoft Print to PDF";
pd.PrinterSettings.PrintToFile = true;
pd.PrinterSettings.PrintFileName = Path.Combine(@"C:\Total\", "DocumentoNuevo" + ".pdf");
pd.Print();
info.CreateNoWindow = true;
}
catch (Exception ex)
{
throw ex;
}