public void TestDeletePages(string filePath)
        {
            var fileInfo = new Model.FileInfo
            {
                FilePath = filePath
            };

            PreviewApi.DeletePages(new DeletePagesRequest(fileInfo));
        }
        public static void Run()
        {
            var apiInstance = new PreviewApi(Constants.GetConfig());

            try
            {
                var fileInfo = new FileInfo {
                    FilePath = "one-page.docx"
                };
                var request = new DeletePagesRequest(fileInfo);

                apiInstance.DeletePages(request);
                Console.WriteLine("DeletePages: pages deleted.");
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception while calling Annotation PreviewApi: " + e.Message);
            }
        }
Ejemplo n.º 3
0
        public static void Run()
        {
            var configuration = new Configuration(Common.MyAppSid, Common.MyAppKey);
            var apiInstance   = new PreviewApi(configuration);

            try
            {
                // Set request.
                var request = new DeletePagesRequest()
                {
                    filePath = "Annotationdocs\\one-page.docx"
                };

                apiInstance.DeletePages(request);
                Console.WriteLine("Expected response type is Void: pages deleted.");
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception while calling Annotation PreviewApi: " + e.Message);
            }
        }