Exemplo n.º 1
0
        public void HtmlRotatePageTest()
        {
            var file = TestFiles.FourPagesDocx;

            var request = new HtmlTransformPagesRequest
            {
                FileName         = file.FileName,
                TransformOptions = new RotateOptions
                {
                    PageNumber = 1,
                    Angle      = 90
                },
                Folder  = file.Folder,
                Storage = null,
            };

            var response = ViewerApi.HtmlTransformPages(request);

            Assert.AreEqual(90, response.Pages[0].Angle);
        }
Exemplo n.º 2
0
        public void HtmlReorderPagesTest()
        {
            var file = TestFiles.FourPagesDocx;

            var request = new HtmlTransformPagesRequest
            {
                FileName         = file.FileName,
                TransformOptions = new ReorderOptions
                {
                    PageNumber  = 1,
                    NewPosition = 2
                },
                Folder  = file.Folder,
                Storage = null,
            };

            var response = ViewerApi.HtmlTransformPages(request);

            Assert.AreEqual(2, response.Pages[0].Number);
            Assert.AreEqual(1, response.Pages[1].Number);
        }