- public static void CreatePDFx(string path)
- {
- PdfDocument outputDocumentx = new PdfDocument();
- }
- foreach (string pat_folder in pat_folders)
- {
- // Initially create PDFs
- Console.WriteLine("Watching this folder {0}", pat_folder);
- try
- {
- CreatePDFx(pat_folder);
- }
- catch (FileNotFoundException ex)
- {
- // Write error.
- System.IO.File.WriteAllLines(@"C:\filenotfound.txt", "Error");
- Console.WriteLine(ex);
- }
- }
C# - Pdfdocument - FileNotFound
Could anyone help me and tell me, why it always throw an exception? Any ideas? Thanks in advance!
Salman BegPosted Jan 20, 2019, 6:33 AM
Jenith ThakkarPosted Jan 18, 2019, 11:15 PM
Vivek KumarPosted Jan 18, 2019, 7:12 PM