public void GetDocumentPolygonAnnotationsExample()
        {
            //ExStart: GetDocumentPolygonAnnotationsExample
            var response = api.GetDocumentPolygonAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
            //ExEnd: GetDocumentPolygonAnnotationsExample
        }
Exemplo n.º 2
0
        public void PutPolygonAnnotationTest()
        {
            PolygonAnnotation annotation = new PolygonAnnotation(Rect: new Rectangle(100, 100, 200, 200),
                                                                 Vertices: new List <Point>
            {
                new Point(10, 10),
                new Point(20, 10),
                new Point(10, 20),
                new Point(10, 10)
            })
            {
                Name  = "Updated Test",
                Flags = new List <AnnotationFlags> {
                    AnnotationFlags.Hidden, AnnotationFlags.NoView
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                RichText            = "Rich Text Updated",
                Subject             = "Subj Updated",
                ZIndex = 1,
                Title  = "Title Updated"
            };

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

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
Exemplo n.º 3
0
        public void GetPolygonAnnotationTest()
        {
            var    polygonresponse = PdfApi.GetDocumentPolygonAnnotations(Name, folder: TempFolder);
            string annotationId    = polygonresponse.Annotations.List[0].Id;

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
Exemplo n.º 4
0
        public void GetDocumentPolygonAnnotationsTest()
        {
            var response = api.GetDocumentPolygonAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
        }
Exemplo n.º 5
0
        public void GetDocumentPolygonAnnotationsTest()
        {
            var response = PdfApi.GetDocumentPolygonAnnotations(Name, folder: TempFolder);

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