PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
hyperlink https://forum.pdfsharp.net/viewtopic.php?f=2&t=4046 |
Page 1 of 1 |
Author: | Jessica [ Thu Nov 07, 2019 6:59 pm ] |
Post subject: | hyperlink |
hi How can I make a hyperlink working inside the PDF file? I want to make a hyperlink and if you click it, it must go to a certain text line in the PDF file. Can somebody explain with the required method calls? I'm using MigraDoc. |
Author: | TH-Soft [ Thu Nov 07, 2019 7:29 pm ] |
Post subject: | Re: hyperlink |
Hi! Add a bookmark at the target location, add a reference to that bookmark where you want to have the link. See "AddHyperlink" in this sample: http://pdfsharp.net/wiki/HelloMigraDoc-sample.ashx |
Author: | Jessica [ Thu Nov 07, 2019 7:47 pm ] |
Post subject: | Re: hyperlink |
Hi So the string you pass to method AddBookmark() must be exactly the same as the string you pass to AddHyperlink() ? Is it AddHyperlink() or AddPageRefField() that makes the hyperlink work when clicked? I'm not sure Does it work this way? |
Author: | TH-Soft [ Thu Nov 07, 2019 11:22 pm ] |
Post subject: | Re: hyperlink |
AddPageRefField shows the page number of the target, AddHyperlink makes it clickable. |
Author: | Jessica [ Sat Nov 09, 2019 12:07 am ] |
Post subject: | Re: hyperlink |
Thx everything is working! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |