I have a PDF that is protected.
If you open this PDF, open the print dialog and choose "Print to PDF" but if in that moment you save in your PC it will be saved as unprotected.
I want to do that in C#. I have this code:
Process proc = new Process();
proc.StartInfo.FileName = @"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe";
proc.StartInfo.Arguments = String.Format(@"/o /p /h C:\Users\itsvan.moreno\Desktop\1.pdf", @"C:\Users\itsvan.moreno\Desktop\");
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.EnableRaisingEvents = true;
proc.Start();
if (proc.HasExited == false)
{
proc.WaitForExit(10000);
}
proc.Close();
All the process is correct but a popup window is displayed to put the name at the new pdf file.
How can I save as without a popup?