Exemple #1
0
        public static AnnotationLink Create(Rect rect)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Link");
            AnnotationLink link1 = (Resources.Get(dict1, typeof(AnnotationLink)) as AnnotationLink);

            link1.Rect = rect;
            Library.CreateIndirect(dict1);
            return(link1);
        }
Exemple #2
0
        public static AnnotationLink Create(Rect rect, LinkDestination dest, EHighlightingMode mode, ActionURI action)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Link");
            AnnotationLink link1 = (Resources.Get(dict1, typeof(AnnotationLink)) as AnnotationLink);

            link1.Rect             = rect;
            link1.Destination      = dest;
            link1.HighlightingMode = mode;
            link1.ActivateAction   = action;
            Library.CreateIndirect(dict1);
            return(link1);
        }