PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 02, 2024 5:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Oct 27, 2015 1:37 pm 
Offline

Joined: Tue Oct 27, 2015 1:30 pm
Posts: 4
Location: Italy
Hi,
is possible with PDFsharp click on a word in a pdf and return the word I clicked? I'm writing with C# VS2015 and my pdf is dislpayed with Adobe Reader tool into a winform. If it's possible, how can I do it?

I googled something but I wasn't very lucky..


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 27, 2015 4:45 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 951
Location: CCAA
Hi!
Paolo Zaia wrote:
my pdf is dislpayed with Adobe Reader tool into a winform.
I don't know what Adobe Reader can do for you.
The PDFsharp FAQ indicate that PDFsharp cannot do much in that direction.

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


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 28, 2015 8:47 am 
Offline

Joined: Tue Oct 27, 2015 1:30 pm
Posts: 4
Location: Italy
I've found this ( http://stackoverflow.com/questions/2100 ... ng-c-sharp ) for itextpdf, that might be a solution for what I want to do. Pdfsharp can't do it?


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 28, 2015 9:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
PDFsharp can extract text from PDF files at a low level. There are libraries that use PDFsharp for that purpose:
https://www.nuget.org/packages/PdfTextract/

I never used that library and cannot say if you can get the word for a certain position using that library.
But PDF files can be very complicated and I cannot imagine that a library will handle all cases correctly.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 28, 2015 9:42 am 
Offline

Joined: Tue Oct 27, 2015 1:30 pm
Posts: 4
Location: Italy
Thank you Thomas, I'll try that! :wink:


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 29, 2015 3:55 pm 
Offline

Joined: Tue Oct 27, 2015 1:30 pm
Posts: 4
Location: Italy
And what if my pdf is displayed with a WebBrowser Control?
Can I do resolve my problem with pdfSharp now?

ps: I forgot to say that I can't use the library TextExtractor because the GPL license!


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 50 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