Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8308331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:46:40+00:00 2026-06-08T18:46:40+00:00

I need to create a winform in Visual Studio 2010 using C# that searches

  • 0

I need to create a winform in Visual Studio 2010 using C# that searches a directory for pdf files and then searches for certain text within the pdfs. For example, the user may enter “John Smith” into the winform. The program needs to search all the pdfs in a given directory for the text “John Smith.” I currently do not have Adobe Acrobat and likely will not be able to purchase it or any non-free add-ins. I’ve been told to look at Apache Solr and Ghostscript, but don’t see how those could be used in a winform. I’ve search for this a lot and seen lots of suggestions, but can’t find any simple examples or tutorials on how to set up a winform to search pdfs. Can someone provide me with some sample code on how to search pdfs in a winform?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:46:42+00:00Added an answer on June 8, 2026 at 6:46 pm

    To search certian text in PDF you can use the ITextSharp library at
    http://sourceforge.net/projects/itextsharp/

    Here is a quick example

    var reader = new PdfReader(pdfPath); 
    StringWriter output = new StringWriter();  
    
    for (int i = 1; i <= reader.NumberOfPages; i++) 
        output.WriteLine(PdfTextExtractor.GetTextFromPage(reader, i, new SimpleTextExtractionStrategy()));
    
    //now you can search for the text from outPut.ToString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a winform app in visual studio 2010. My app does the following
I am trying to create a winform application that searches through an XML doc.
I am using Visual Studio 2010 Ultimate. I want to find out which methods
I have a VERY simple C# Winforms project that I made using Visual Studio
I'm a beginner in WinForms VB NET programming. I need to create text box
Need to create a custom DNS name server using C which will check against
I've built a Visual Studio (2010) Installer Setup project to deploy a basic WinForms
I have a WinForms application built using Visual Studio 2008. I added a Setup
First, some basic details: I'm using Visual Studio 2008 Team Edition I'm using C#
I am working on a VB.NET WinForms app that was upgraded by Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.