Esempio n. 1
0
        public void HtmlGetPagesFromUrlTest()
        {
            var file = TestFiles.FromUrlWithNotesPptx;

            var request = new HtmlGetPagesFromUrlRequest
            {
                Url          = file.Url,
                FileName     = file.FileName,
                ResourcePath = null,
                IgnoreResourcePathInResources = null,
                EmbedResources    = null,
                StartPageNumber   = null,
                CountPages        = null,
                Password          = null,
                RenderComments    = null,
                RenderHiddenPages = null,
                DefaultFontName   = null,
                FontsFolder       = null,
                Folder            = FromUrlFolder,
                Storage           = null,
            };

            var response = ViewerApi.HtmlGetPagesFromUrl(request);

            Assert.AreEqual("with-notes.pptx", response.FileName);
            Assert.AreEqual(1, response.Pages.Count);
        }