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

            Console.WriteLine(response);
            //ExEnd: GetDocumentFreeTextAnnotationsTest
        }
Exemplo n.º 2
0
        public void PutFreeTextAnnotationTest()
        {
            FreeTextAnnotation annotation = new FreeTextAnnotation()
            {
                Name      = "Test Free Text",
                TextStyle = new TextStyle(FontSize: 12, Font: "Arial", ForegroundColor: new Color(0xFF, 0, 0xFF, 0), BackgroundColor: new Color(0xFF, 0xFF, 0, 0)),
                Rect      = new Rectangle(100, 100, 200, 200),
                Flags     = new List <AnnotationFlags> {
                    AnnotationFlags.Default
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                Intent        = FreeTextIntent.FreeTextTypeWriter,
                RichText      = "Updated Text",
                Subject       = "Text Box Subj",
                ZIndex        = 1,
                Justification = Justification.Center,
                Title         = "Title"
            };

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

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

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

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
Exemplo n.º 4
0
        public void GetDocumentFreeTextAnnotationsTest()
        {
            var response = PdfApi.GetDocumentFreeTextAnnotations(Name, folder: TempFolder);

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