Anshit Hayaran

Anshit Hayaran

  • NA
  • 19
  • 5.4k

Saving a pdf file opened in Adobe Reader by a process in c#

May 13 2020 11:17 PM
I am trying to open the file in Adobe Reader through "process" because Adobe reader can repair the corrupt file itself, but I need to “SaveAs” the file also from there at code level without manually saving it, is it possible in .net?
 
Code I am using :
  1. Process p = new Process();  
  2. p.StartInfo.FileName = file;  
  3. p.Start();  
  4. //Code to Save As this file  
  5. p.Close();  
  6. inputDocument = PdfReader.Open(file, PdfDocumentOpenMode.Import);

Answers (2)