Пример #1
0
        static int AddLinkToUri(Doc doc, XRect rect, string uri)
        {
            var id = doc.AddObject("<< /Type /Annot /Subtype /Link /A << /Type /Action /S /URI /URI () >> /Border [0 0 0] >>");

            doc.SetInfo(doc.Page, "/Annots*[]:Ref", id);
            doc.SetInfo(id, "/Rect:Rect", doc.Rect.String);
            doc.SetInfo(id, "/A/URI:Text", uri);
            return(id);
        }