Read PDF file

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

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

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Developer technologies | Visual Studio | Other
Community Center | Not monitored
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Castorix31 90,956 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,431 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

  5. PDF Reader Pro 0 Reputation points
    2025-05-28T06:49:01.96+00:00

    You can also have a look at reading PDF files with Visual Studio 2022. This is an example to render PDFs with ComPDF.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.