PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Hyperlinks in PDF Doc https://forum.pdfsharp.net/viewtopic.php?f=2&t=397 |
Page 1 of 1 |
Author: | marcdroo [ Mon Jun 02, 2008 2:00 pm ] |
Post subject: | Hyperlinks in PDF Doc |
Hi, First off - great work on this library! I'm hoping to add hyperlinks to a paragraph of text. I've been able to use the [XtextFormatter].DrawString() to render the paragraph and page.AddWebLink() method to create a hyperlink. I just can't see how I can combine both so that the hyperlinks appear within the paragraph text. Do you have any sample code that might accomplish this ? Thanks |
Author: | Thomas Hoevel [ Tue Jun 03, 2008 1:30 pm ] |
Post subject: | |
Hello! I don't have a sample. I'd try MeasureString to query the size of the text to be able to calculate the rectangle for AddWebLink. Or let MigraDoc do that for you ... |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |