C# code to read all the contents from the PDF file.

Posted on 2009-04-30
Last Modified: 2013-12-17
I was looking for C# code to read all the contents from the PDF file.
Like how can we read the pdf file using PdfReader in C#.

It would be great if someone can please answer to this question ASAP

Question by:dev_qasource
    LVL 9

    Expert Comment


    Author Comment


    Thanks for this link. The problem with this code is that it extracts the PDF in text content and does not enable to verify if PDF file contains any radio button/checkbox or anything.......

    feasible solution is using PDFReader as per me, but I am not able to use it as i want to know how to use pdfreader class.

    Any comments?
    LVL 69

    Accepted Solution


    Assisted Solution

    using the PDFReader written by Michael Ganss, you can enumerate through the fields in the PDF Form. You can get the type of each field and verify that a checkbox/radio button/whatever exists.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now