public byte[] ConvertWithParameters(byte[] fileToConvert, string fileExtension, AttachConversionMode mode)
 {
     try
     {
         logger.DebugFormat("ConvertWithParameters {0}, mode:{1}", fileExtension, mode);
         return(ConverterAssemblyLoader.GetConverter().Convert(fileToConvert, fileExtension, "pdf", mode));
     }
     catch (Exception ex)
     {
         logger.Error(ex);
         throw;
     }
 }
 public byte[] Convert(byte[] fileToConvert, string fileExtension)
 {
     try
     {
         logger.DebugFormat("Convert {0}", fileExtension);
         return(ConverterAssemblyLoader.GetConverter().Convert(fileToConvert, fileExtension, "pdf", AttachConversionMode.Default));
     }
     catch (Exception ex)
     {
         logger.Error(ex);
         throw;
     }
 }
 public string GetVersion()
 {
     return(ConverterAssemblyLoader.GetConverter().GetVersion());
 }