Exemple #1
0
 public int ConvertToRtfPwd(string source, string target, string password)
 {
     try
     {
         AsposeConverter ac = new AsposeConverter();
         ac.ConvertToRtfPwd(source, target, password);
         return (int)ConverterMessages.OK;
     }
     catch (System.Exception e)
     {
         if (e is IncorrectPasswordException)
         {
             return (int)ConverterMessages.IncorrectPassword;
         }
         else
         {
             return (int)ConverterMessages.Error;
         }
     }
 }