ADDING LINKS TO PDF BY USING MIGRADOC

Takeshi Okada

Total Post:89

Points:629
Posted by  Takeshi Okada
 3251  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:26

    Points:182
    Re: Adding links to pdf by using MigraDoc

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

Answer

NEWSLETTER

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