コード例 #1
0
        public void GetDocumentCaretAnnotationsTest()
        {
            UploadFile(Name, Name);
            var response = api.GetDocumentCaretAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
        }
コード例 #2
0
        public void GetDocumentCaretAnnotationsExample()
        {
            //ExStart: GetDocumentCaretAnnotationsExample
            UploadFile(Name, Name);
            var response = api.GetDocumentCaretAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
            //ExEnd: GetDocumentCaretAnnotationsExample
        }
コード例 #3
0
        public void PutCaretAnnotationTest()
        {
            CaretAnnotation annotation = new CaretAnnotation(Rect: new Rectangle(101, 101, 201, 201))
            {
                Name = "Test Caret Annotation Updated",

                Flags = new List <AnnotationFlags> {
                    AnnotationFlags.Hidden, AnnotationFlags.NoView
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                RichText            = "Rich Text Updated",
                Subject             = "Subj Updated",
                ZIndex   = 1,
                Title    = "Title Updated",
                Frame    = new Rectangle(100, 100, 200, 200),
                Modified = "02/02/2018 00:00:00.000 AM"
            };

            var    lineResponse = PdfApi.GetDocumentCaretAnnotations(Name, folder: TempFolder);
            string annotationId = lineResponse.Annotations.List[0].Id;

            var response = PdfApi.PutCaretAnnotation(Name, annotationId, annotation, folder: TempFolder);

            Assert.That(response.Code, Is.EqualTo(200));
        }
コード例 #4
0
        public void GetCaretAnnotationTest()
        {
            var    Caretresponse = PdfApi.GetDocumentCaretAnnotations(Name, folder: TempFolder);
            string annotationId  = Caretresponse.Annotations.List[0].Id;

            var response = PdfApi.GetCaretAnnotation(Name, annotationId, folder: TempFolder);

            Assert.That(response.Code, Is.EqualTo(200));
        }
コード例 #5
0
        public void GetDocumentCaretAnnotationsTest()
        {
            var response = PdfApi.GetDocumentCaretAnnotations(Name, folder: TempFolder);

            Assert.That(response.Code, Is.EqualTo(200));
        }