PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Thu Apr 02, 2026 9:59 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Hyperlinking to bookmark
PostPosted: Sun Oct 12, 2014 1:55 pm 
Offline

Joined: Tue Dec 08, 2009 10:05 am
Posts: 19
I followed the example of the hello world pdf migradoc example... and am not actually able to get a link I can click on and have it jump.

early on, I build table of contents with a bookmark that is not yet created by doing something like this:
Code:
  Hyperlink hyperlink = paragraph.AddHyperlink("TableData"); // I've tried this explicitly passing in Bookmark type
  hyperlink.AddText("Raw Data\t");
  hyperlink.AddPageRefField("TableData");


and then when I am actually building out the report...

Code:
var para = matrixSection.AddParagraph();
para.AddBookmark("TableData");


It actually draws the title/page number correctly, but I just cant click on it.


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 13, 2014 8:13 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3144
Location: Cologne, Germany
ronnyek wrote:
It actually draws the title/page number correctly, but I just cant click on it.
Are you using Adobe Reader to watch the PDF file?
I can't see an error in your code snippets.

An SSCCE and an MDDDL file might help.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 12:48 am 
Offline

Joined: Tue Dec 08, 2009 10:05 am
Posts: 19
I'll work on the two files... I have the pdf's being opened in foxit, it pops up a new tab each time I build the document. This has worked for other changes thus far... and the hello migradoc example works in foxit as well


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 1:15 am 
Offline

Joined: Tue Dec 08, 2009 10:05 am
Posts: 19
Ahh my mistake, I didnt realize until just now that everywhere I've seen it work, it was working inside of the chrome pdf browser. Foxit by default leaves you with text selection tool, which doesnt allow you to click book mark links. SO if anyone is running into it, it very well could be foxit.

http://forums.foxitsoftware.com/forum/p ... e-unchecke


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 145 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group