Hi there,
I am aware that this is an old post but i tried to download the example using the link provided and i received an error because the resource is no longer there.
I am trying to embed a mailto link in my pdf document, the link has the following format:
'<a rel='nofollow' href="mailto:juri.parrinello@.kpmg.co.uk?Subject=EmailSubject&Body=EmailBody">Add comments</a>'
To create the PDF document, I use the following code:
Dim pdfDoc As New PdfDocument
Dim MyPage As PdfPage = pdfDoc.Pages.Add()
MyPage.Section.PageSettings.Margins.Top = 10
MyPage.Section.PageSettings.Margins.Left = 20
Dim converter As New HtmlConverter
converter.EnableHyperlinks = True
converter.AutoDetectPageBreak = True
Dim result As Image = converter.FromString(htmlData, ImageType.Metafile, 650)
Dim pdfImage As PdfImage = pdfImage.FromImage(result)
Dim format As PdfMetafileLayoutFormat = New PdfMetafileLayoutFormat()
format.Break = PdfLayoutBreakType.FitPage
format.Layout = PdfLayoutType.Paginate
format.SplitTextLines = False
format.SplitImages = False
pdfImage.Draw(MyPage, PointF.Empty, format)
Yet, when the pdf document is created, the link looks like a proper link Add comments but clicking it does produce the expected result (opening a new mail) - it looks like i am clicking a plain text.
Would someone be able to assist me with my query?
Kind Regards
Juri Parrinello