示例#1
0
        public void HtmlCreatePdfFileFromUrl()
        {
            var file           = TestFiles.FromUrlWithNotesPptx;
            var pdfFileOptions = new PdfFileOptions();

            var request = new HtmlCreatePdfFileFromUrlRequest
            {
                Url            = file.Url,
                PdfFileOptions = pdfFileOptions,
                FileName       = null,
                FontsFolder    = null,
                Folder         = FromUrlFolder,
                Storage        = null,
            };

            var response = ViewerApi.HtmlCreatePdfFileFromUrl(request);

            Assert.IsNotEmpty(response.FileName);
            Assert.IsNotEmpty(response.Folder);
            Assert.IsNotEmpty(response.PdfFileName);
        }