コード例 #1
0
        public void GetDocumentInkAnnotationsExample()
        {
            //ExStart: GetDocumentInkAnnotationsExample
            var response = api.GetDocumentInkAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
            //ExEnd: GetDocumentInkAnnotationsExample
        }
コード例 #2
0
        public void GetInkAnnotationTest()
        {
            var    Inkresponse  = PdfApi.GetDocumentInkAnnotations(Name, folder: TempFolder);
            string annotationId = Inkresponse.Annotations.List[0].Id;

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
コード例 #3
0
        public void PutInkAnnotationTest()
        {
            InkAnnotation annotation = new InkAnnotation()
            {
                Name  = "Test Ink Annotation Updated",
                Rect  = new Rectangle(101, 101, 201, 201),
                Flags = new List <AnnotationFlags> {
                    AnnotationFlags.Hidden, AnnotationFlags.NoView
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                RichText            = "Rich Text Updated",
                Subject             = "Subj Updated",
                ZIndex  = 1,
                Title   = "Title Updated",
                InkList = new List <List <Point> >
                {
                    new List <Point>
                    {
                        new Point(10, 40),
                        new Point(30, 40)
                    },
                    new List <Point>
                    {
                        new Point(10, 20),
                        new Point(20, 20),
                        new Point(30, 20)
                    }
                },
                CapStyle = CapStyle.Rounded,
                Modified = "02/02/2018 00:00:00.000 AM"
            };

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

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

            Assert.That(response.Code, Is.EqualTo(201));
        }
コード例 #4
0
        public void GetDocumentInkAnnotationsTest()
        {
            var response = api.GetDocumentInkAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
        }
コード例 #5
0
        public void GetDocumentInkAnnotationsTest()
        {
            var response = PdfApi.GetDocumentInkAnnotations(Name, folder: TempFolder);

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