|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
marcdroo
Joined: 02 Jun 2008 Posts: 1
|
Posted: 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 |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: 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 ... _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|