private void ConvertToPdf(string tmpFile, string tmpDocx, string profile = null)
 {
     try
     {
         LibreOfficeUtils.Convert(tmpDocx, tmpFile, profile);
     }
     catch (Exception e)
     {
         throw ExitCode.PdfConversionFailed(tmpDocx, e).ToCommandException();
     }
 }