PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

adding hyperlinks to existing text in a pdf file
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1622
Page 1 of 1

Author:  leposima [ Mon Apr 18, 2011 2:20 pm ]
Post subject:  adding hyperlinks to existing text in a pdf file

Hello,

Is it possible to search for a certain text(strings) from a read pdf-file and if matching string are found, a hyperlink is put into this chunk of text, and then write a new pdf?


EG.
Find("moi")

in the old pdf:
hei terve moi hello hi

(moi is found so it is replaced with link in the new pdf:)
hei terve moi hello hi




Thanks,
Matias

Author:  cvdbrugge [ Wed Jul 13, 2011 6:26 pm ]
Post subject:  Re: adding hyperlinks to existing text in a pdf file

I'm looking for the same thing. Just search a PDF-file for a string and if found surround it with a hyperlink. I can not find I proper example.
Does anyone has a simple c# example for this question?

Thanks,

cvdbrugge

Author:  jeffbarrette [ Wed Aug 05, 2015 7:53 pm ]
Post subject:  Re: adding hyperlinks to existing text in a pdf file

I'm looking to do the same thing (4 years later). Is this possible?

Attached is a screenshot of my index page. Within each tile is a number. I would like to click on the number to jump to the appropriate map book page.

I've added bookmarks and they work great, this other option would be icing on the cake.

Thanks,
Jeff

Attachments:
Capture.JPG
Capture.JPG [ 146.45 KiB | Viewed 7905 times ]

Author:  TH-Soft [ Thu Aug 06, 2015 7:04 pm ]
Post subject:  Re: adding hyperlinks to existing text in a pdf file

jeffbarrette wrote:
Within each tile is a number. I would like to click on the number to jump to the appropriate map book page.
It's easy to add a hyperlink for a known region. It's more difficult to extract text.
So the question is: how much do you know about the frontpage and it's tiles?
If you know enough to add the links without searching for text, it'll be simple.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/