Read PDF file

Peter_1985 2,526 Reputation points
2020-11-01T10:15:01.21+00:00

Hi,
Is there an example to read PDF file using Visual studio 2015?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,628 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
945 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,171 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Castorix31 81,746 Reputation points
    2020-11-01T11:03:11.643+00:00

    To display a PDF inside a Form, you can use "Adobe Acrobat 7.0 Browser Control Type Library 1.0"
    (I had posted a sample in this thread)

    You can also use Windows.Data.Pdf Namespace

    0 comments No comments

  2. Dylan Zhu-MSFT 6,406 Reputation points
    2020-11-02T02:10:12.36+00:00

    Hi Jackson1990-7147,

    You could follow this thread to read pdf in C#: how to read pdf file through C# ?

    If you are using C++, please read this thread: Parse PDF file

    By the way, if they don't work for you, we suggest you could redirect to specified language forum, then the community members will provide dedicated support for you.

    Best Regards,
    Dylan

    ----
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Ezreal95 1 Reputation point
    2021-01-20T08:07:15.013+00:00

    hi, I suggest that you try Spire.PDF to read and extract PDF content with C#.

    Check this link out
    https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Read-PDF-Read-PDF-Images-and-Text-in-C-VB.NET.html

    0 comments No comments

  4. Amin Dodin 1 Reputation point
    2021-01-20T17:42:28.11+00:00

    An easy way to load PDF files in Visual Studio projects is to use LEADTOOLS PDF SDK Libraries. (Disclaimer: I work for the vendor of LEADTOOLS).

    If the goal is to quickly display a PDF file on a form in C#, the following code can be used:

    RasterCodecs codecs = new RasterCodecs();
    // _viewer is a control of type Leadtools.Controls.ImageViewer
    _viewer.Image = codecs.Load(pdfFileName);
    

    If more advanced features are needed, there are other classes such as the PDFDocument Class.

    If you would like to try it, there’s a free evaluation edition on this page.

    0 comments No comments