示例#1
0
        public void HtmlGetPageWithCustomFontTest()
        {
            var file       = TestFiles.UsesCustomFontPptx;
            var pageNumber = 1;

            var request = new HtmlGetPageRequest
            {
                FileName     = file.FileName,
                PageNumber   = pageNumber,
                ResourcePath = null,
                IgnoreResourcePathInResources = null,
                EmbedResources    = true,
                Password          = null,
                RenderComments    = null,
                RenderHiddenPages = null,
                DefaultFontName   = null,
                FontsFolder       = "fonts",
                Folder            = file.Folder,
                Storage           = null,
            };

            var response = ViewerApi.HtmlGetPage(request);

            Assert.IsInstanceOf <System.IO.Stream>(response, "Expected response type is System.IO.Stream");
            Assert.IsTrue(response.Length > 0);
        }