PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 5:07 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hyperlinks in PDF Doc
PostPosted: Mon Jun 02, 2008 2:00 pm 
Offline

Joined: Mon Jun 02, 2008 1:52 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 03, 2008 1:30 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 385 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group