예제 #1
0
        public void PutLineAnnotationTest()
        {
            LineAnnotation annotation = new LineAnnotation(Rect: new Rectangle(100, 100, 200, 200),
                                                           Starting: new Point(10, 10),
                                                           Ending: new Point(100, 100))
            {
                Name  = "Test Line Annotation",
                Flags = new List <AnnotationFlags> {
                    AnnotationFlags.Hidden, AnnotationFlags.NoView
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                RichText            = "Updated Rich Text",
                Subject             = "Subj",
                ZIndex      = 1,
                ShowCaption = true,
                Title       = "Title Updated"
            };

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

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
예제 #2
0
        public void GetLineAnnotationTest()
        {
            var    lineresponse = PdfApi.GetDocumentLineAnnotations(Name, folder: TempFolder);
            string annotationId = lineresponse.Annotations.List[0].Id;

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
예제 #3
0
        public void GetDocumentLineAnnotationsTest()
        {
            var response = PdfApi.GetDocumentLineAnnotations(Name, folder: TempFolder);

            Assert.That(response.Code, Is.EqualTo(200));
        }
        public void GetDocumentLineAnnotationsExample()
        {
            var response = api.GetDocumentLineAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
        }