static void RenderTestFile(string fileName, DropboxClient client)
        {
            var storage = new DropboxStorage(client);

            var config = new ViewerConfig
            {
                EnableCaching = true
            };
            var viewer = new ViewerHtmlHandler(config, storage);

            var pages = viewer.GetPages(fileName);

            foreach (var page in pages)
            {
                Console.WriteLine(page.HtmlContent);
            }

            viewer.ClearCache(fileName);
        }
        /// <summary>
        /// Remove cache files
        /// </summary>
        public static void RemoveCacheFiles()
        {
            try
            {
                //ExStart:RemoveCacheFiles
                // Setup GroupDocs.Viewer config
                ViewerConfig config = Utilities.GetConfigurations();

                // Init viewer image or html handler
                ViewerHtmlHandler viewerImageHandler = new ViewerHtmlHandler(config);

                //Clear all cache files
                viewerImageHandler.ClearCache();
                //ExEnd:RemoveCacheFiles
            }
            catch (System.Exception exp)
            {
                Console.WriteLine(exp.Message);
            }
        }
        public String Get(string file, string watermarkText, int?watermarkColor, WatermarkPosition?watermarkPosition, int?watermarkWidth, byte watermarkOpacity, bool isdownload)
        {
            ViewerHtmlHandler handler = Utils.CreateViewerHtmlHandler();

            handler.ClearCache(file);
            try
            {
                PrintableHtmlOptions o = new PrintableHtmlOptions();
                if (watermarkText != "")
                {
                    o.Watermark = Utils.GetWatermark(watermarkText, watermarkColor, watermarkPosition, watermarkWidth, watermarkOpacity);
                }

                PrintableHtmlContainer container = handler.GetPrintableHtml(file, o);
                return(container.HtmlContent.Replace(".doc-page { position: absolute; }", ".doc-page { position: relative; }"));
            }
            catch (Exception x)
            {
                throw x;
            }
        }