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

            Console.WriteLine(response);
            //ExEnd: GetDocumentPopupAnnotationsExample
        }
示例#2
0
        public void GetPopupAnnotationTest()
        {
            var    Popupresponse = PdfApi.GetDocumentPopupAnnotations(Name, folder: TempFolder);
            string annotationId  = Popupresponse.Annotations.List[0].Id;

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
        public void PutPopupAnnotationTest()
        {
            PopupAnnotation annotation = new PopupAnnotation(Rect: new Rectangle(101, 101, 201, 201))
            {
                Name  = "Test Popup Annotation Updated",
                Flags = new List <AnnotationFlags> {
                    AnnotationFlags.Hidden, AnnotationFlags.NoView
                },
                HorizontalAlignment = HorizontalAlignment.Center,
                ZIndex   = 1,
                Modified = "02/02/2018 00:00:00.000 AM"
            };

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

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

            Assert.That(response.Code, Is.EqualTo(200));
        }
示例#4
0
        public void GetDocumentPopupAnnotationsTest()
        {
            var response = api.GetDocumentPopupAnnotations(Name, folder: FolderName);

            Console.WriteLine(response);
        }
示例#5
0
        public void GetDocumentPopupAnnotationsTest()
        {
            var response = PdfApi.GetDocumentPopupAnnotations(Name, folder: TempFolder);

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