ADDING LINKS TO PDF BY USING MIGRADOC

Takeshi Okada

Total Post:89

Points:629
Posted by  Takeshi Okada
 3451  View(s)
Ratings:
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.

  1. E E Cummings

    Post:25

    Points:175
    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!