Example #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// LogDebug
 ///
 /// <summary>
 /// Outputs log of the Ghostscript API.
 /// </summary>
 ///
 /// <param name="src">Ghostscript converter object.</param>
 ///
 /* ----------------------------------------------------------------- */
 public static void LogDebug(this Ghostscript.Converter src)
 {
     try
     {
         if (!src.Log.HasValue() || !src.IO.Exists(src.Log))
         {
             return;
         }
         using var ss = new StreamReader(src.IO.OpenRead(src.Log));
         while (!ss.EndOfStream)
         {
             src.LogDebug(ss.ReadLine());
         }
     }
     catch (Exception err) { src.LogDebug(err.Message); }
 }