Exemple #1
0
        public static ActionGoto Create(bool indirect, LinkDestination dest)
        {
            ActionGoto goto1 = ActionGoto.Create(indirect);

            goto1.JumpDestination = dest;
            return(goto1);
        }
Exemple #2
0
        public static ActionGoto Create(LinkDestination dest)
        {
            ActionGoto goto1 = ActionGoto.Create(true);

            goto1.JumpDestination = dest;
            return(goto1);
        }
Exemple #3
0
        public static ActionGotoR Create(bool indirect, string file, LinkDestination dest)
        {
            ActionGotoR or1 = ActionGotoR.Create(indirect);

            or1.FileSpecification = new FileSpec(Library.CreateString(file));
            or1.JumpDestination   = dest;
            return(or1);
        }
Exemple #4
0
        public static OutlineItem Create(string title, LinkDestination dest)
        {
            OutlineItem item1 = OutlineItem.Create();

            item1.Title       = title;
            item1.Destination = dest;
            return(item1);
        }
Exemple #5
0
        public static ActionGotoR Create(string file, LinkDestination dest, bool newWindow)
        {
            ActionGotoR or1 = ActionGotoR.Create(true);

            or1.FileSpecification = new FileSpec(Library.CreateString(file));
            or1.JumpDestination   = dest;
            or1.NewWindow         = newWindow;
            return(or1);
        }
Exemple #6
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);
        }