/// GetFileFormat
        #region GetFileFormat

        /// <summary>
        ///
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public static SupportedPrintFormat GetFileFormat(string fileName)
        {
            if (String.IsNullOrWhiteSpace(fileName))
            {
                return(SupportedPrintFormat.None);
            }

            try
            {
                if (!File.Exists(fileName))
                {
                    return(SupportedPrintFormat.None);
                }
            }
            catch
            {
                return(SupportedPrintFormat.None);
            }

            if (PDFHelper.IsPDF(fileName))
            {
                return(SupportedPrintFormat.PDF);
            }

            if (PostScriptHelper.IsPS(fileName))
            {
                return(SupportedPrintFormat.PS);
            }

            return(SupportedPrintFormat.Unknown);
        }