/// <summary>
        /// Render a document as it is (original form)
        /// </summary>
        /// <param name="DocumentName"></param>
        public static void RenderDocumentAsOriginal(String DocumentName)
        {
            //ExStart:RenderOriginal
            // Create image handler
            ViewerImageHandler imageHandler = new ViewerImageHandler(Utilities.GetConfigurations());

            // Guid implies that unique document name
            string guid = DocumentName;

            // Get original file
            FileContainer container = imageHandler.GetFile(guid);

            //Save each image at disk
            Utilities.SaveAsImage(DocumentName, container.Stream);
            //ExEnd:RenderOriginal
        }
        /// <summary>
        /// Get original file
        /// </summary>
        public static void Run()
        {
            Console.WriteLine("***** {0} *****", "Get original file");

            /* ********************* SAMPLE ********************* */

            // Setup GroupDocs.Viewer config
            ViewerConfig config = new ViewerConfig();
            config.StoragePath = @"C:\storage";

            // Create image handler
            ViewerImageHandler imageHandler = new ViewerImageHandler(config);

            string guid = "word.doc";

            // Get original file
            FileContainer container = imageHandler.GetFile(guid);
            Console.WriteLine("Stream lenght: {0}", container.Stream.Length);
        }
        /// <summary>
        /// Get attached image with email message
        /// </summary>
        /// <param name="DocumentName">Input document name</param>
        public static void GetEmailAttachments(String DocumentName)
        {
            try
            {
                //ExStart:GetEmailAttachments
                // Setup GroupDocs.Viewer config
                ViewerConfig config = Utilities.GetConfigurations();

                // Create image handler
                ViewerImageHandler handler    = new ViewerImageHandler(config);
                EmailAttachment    attachment = new EmailAttachment(DocumentName, "attachment-image.png");

                // Get attachment original file
                FileContainer container = handler.GetFile(attachment);

                Console.WriteLine("Attach name: {0}, Type: {1}", attachment.Name, attachment.FileType);
                Console.WriteLine("Attach stream lenght: {0}", container.Stream.Length);
                //ExEnd:GetEmailAttachments
            }
            catch (System.Exception exp)
            {
                Console.WriteLine(exp.Message);
            }
        }