Adding links to pdf by using MigraDoc

Total Post:89


 3982  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 };


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

  1. Re: Adding links to pdf by using MigraDoc

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

      Modified On Mar-31-2018 04:55:21 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.