Exemplo n.º 1
0
        public static void Run()
        {
            var configuration = new Configuration(Common.MyAppSid, Common.MyAppKey);
            var apiInstance   = new AnnotateApi(configuration);

            try
            {
                // Set request.
                var request = new GetPdfRequest()
                {
                    filePath = "Annotationdocs\\ten-pages.docx"
                };

                var response = apiInstance.GetPdf(request);
                Console.WriteLine("Expected response type is Stream: Document Length: " + response.Length.ToString());
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception while calling Annotation AnnotateApi: " + e.Message);
            }
        }