Пример #1
0
        public void TestGetPageLinkAnnotationByIndex()
        {
            PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH);
            StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH);

            string name = "Sample-Bookmark.pdf";
            int? pageNumber = 1;
            int? linkIndex = 1;
            string storage = null;
            string folder = null;

            storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name));

            Com.Aspose.PDF.Model.LinkAnnotationResponse actual;
            actual = target.GetPageLinkAnnotationByIndex(name, pageNumber, linkIndex, storage, folder);

            Assert.AreEqual("200", actual.Code);
            Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.LinkAnnotationResponse(), actual.GetType());
        }