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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Is there an example to read PDF file using Visual studio 2015?
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
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.
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
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.