Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is this possible to Extract hyperlinks in pdf file and check they are work properly using .net c#?
Posted

2 steps:
1. Extract hyperlinks
2. Check if they are valid / return a valid response when a request is sent to it

Following will help you know about url extraction, similar discussions:
Finding hyperlinks inside a PDF document?[^]
Get the list of hyperlinks in a PDF file[^]

Try out. Post specific issues when you face any.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Mar-13 15:45pm    
Good, a 5.
I also added Solution 3, just to complement Solution 1, please see both...
—SA
Hi,

There is nice article on this topic located here. The sample shown on this site is done using Java Language. However same can be achieved using PDFSharp or iTextSharp libraries in .NET.

regards,
 
Share this answer
 
Comments
Ashwani Gusain 6-Mar-13 12:06pm    
Thank You Sir But Iam Searching in .net c# platform can you plzz convert this code into c#.
Sergey Alexandrovich Kryukov 6-Mar-13 15:43pm    
Gusain,
Please, read the answer by Prasad more carefully. He answered it in first place: iTextSharp. You just did not get it. Please see my answer where I give you exact links.
—SA
Sergey Alexandrovich Kryukov 6-Mar-13 15:45pm    
I voted 4. This is a nice link to a code sample and a good advice, but Gusain did not get it because you did not provide all references to iText and iTextSharp; look at the comments.
So I added my solution to complement this one, please see.
This answer is of course credited.
—SA
Sergey Alexandrovich Kryukov 15-Mar-13 15:30pm    
And I suggested OP to accept this answer, too; please see my answer and comments...
—SA
Ashwani Gusain 25-Mar-13 8:58am    
To-prasad sir sir can u please convert your given java code into c#.PLEASE Sir it is really important to me.
It looks like you did not get what Prasad advised in Solution 1.

To help you, let me show you exact references:

You can use the .NET port of iText; this port is called iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

I provided links to iText, too, because nearly all documentation you need to work with iTextSharp is there, provided as Java documentation.

Better now?

—SA
 
Share this answer
 
Comments
Ashwani Gusain 15-Mar-13 15:07pm    
yes sir thank you.
Sergey Alexandrovich Kryukov 15-Mar-13 15:29pm    
You are welcome. Will you accept the answer formally (green button)? You can accept more than one; I suggest Prasad's solution can also be accepted.
—SA
Ashwani Gusain 22-Mar-13 8:41am    
TO sir Sergey -Sir iam unble write the correct code of this application sir please help me to write some code of this application for me.
Sergey Alexandrovich Kryukov 22-Mar-13 9:01am    
How can I know what exactly you are unable to do?
—SA
Ashwani Gusain 23-Mar-13 8:48am    
sir i want simply extract all hyperlinks in a pdf file and check them with they work properly or not.sir please post code of it.I really need it as soon as possible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900