CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2015
    Posts
    6

    How to find a word in pdf document and link it to a file in your hard drive.

    Dear All,

    Could anyone help me how to find a word in pdf document and link it to a file in the hard drive.

    your help is mostly appreciated.

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    Not sure what you are actually trying to ask.

    What do you mean when you say link a file?
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Aug 2015
    Posts
    6

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    Dear DataMiser,

    Thank you for your reply.

    What I meant is when you find your search word you underline it then by clicking on that word it will take you to a specific file in the directory have a name of that word.

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    This will give you a good start:

    Manipulating PDF files with iTextSharp and VB.NET 2012
    http://www.codeguru.com/columns/vb/m...b.net-2012.htm

  5. #5
    Join Date
    Aug 2015
    Posts
    6

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    Dear Hannes,

    Thank you for reply.

    I tried the code, the code is great, but I couldn't figure how to search for a word and underline it then by clicking on that word it will take me to a specific file in the my computer having a name of that word.

  6. #6
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    I assume that when you say "it will take me to a specific file in the my computer" You mean that you either want it to open Windows explorer and navigate to the file or you want it to open that file with whatever program it is assigned to.

    I am not aware of PDF having this capability, hyperlink maybe.

    It always helps to give a clear description of what you are trying to do.
    Always use [code][/code] tags when posting code.

  7. #7
    Join Date
    Aug 2015
    Posts
    6

    Re: How to find a word in pdf document and link it to a file in your hard drive.

    Dear DataMiser,

    Thank you for your reply.

    Yes, what I meant is to search for a pdf word and underline it (as hyperlink ) then by clicking on that word it will open that file with whatever program it is assigned to.

    Or

    Let us say to open that file as pdf file.


    I appreciate your cooperation.
    Last edited by abudhaigham; August 19th, 2015 at 06:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured