private void ProcessEncode() { Console.WriteLine($"Encoding file {_options.Input}"); var dataOutput = new DataOutput(File.ReadAllBytes(_options.Input)); var extension = Path.HasExtension(_options.Output) ? "" : ".pdf"; var fileName = $"{_options.Output}{extension}"; dataOutput.SaveDataAsPdf(fileName); }