PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Oct 03, 2025 3:50 am

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
PostPosted: Mon Apr 18, 2011 2:20 pm 
Offline

Joined: Mon Apr 18, 2011 2:15 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 13, 2011 6:26 pm 
Offline

Joined: Wed Jul 13, 2011 6:20 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 05, 2015 7:53 pm 
Offline

Joined: Wed Aug 05, 2015 6:44 pm
Posts: 1
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 7908 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 06, 2015 7:04 pm 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1057
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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: No registered users and 404 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