Home > DeveloperSection > Forums > Adding links to pdf by using MigraDoc
Takeshi Okada
Takeshi Okada

Total Post:89

Points:629
Posted on    October-05-2013 2:36 AM

 ASP.NET MVC ASP.NET MVC 
Ratings:


 1 Reply(s)
 2224  View(s)
Rate this:

I use MigraDoc for creating pdf documents in the project.

Code below shows how I work with library:

        var document = new Document { Info = { Author = "title" } };
        Section section = document.AddSection();
        Paragraph paragraph = section.AddParagraph("Title");
        var renderer = new PdfDocumentRenderer(true, PdfSharp.Pdf.PdfFontEmbedding.Always) { Document = document };
        renderer.RenderDocument();

So, I'm looking for a way to adding link to web resource inside pdf.



E E Cummings
E E Cummings

Total Post:26

Points:182
Posted on    October-05-2013 4:15 AM

Use paragraph.AddHyperlink() for that purpose. You will need HyperlinkType.Web.


Don't want to miss updates? Please click the below button!

Follow MindStick