Esempio n. 1
0
        public void HtmlCreatePdfFile()
        {
            var file           = TestFiles.PasswordProtectedDocx;
            var pdfFileOptions = new PdfFileOptions
            {
                Password = file.Password
            };

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

            var response = ViewerApi.HtmlCreatePdfFile(request);

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