A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
You can also have a look at reading PDF files with Visual Studio 2022. This is an example to render PDFs with ComPDF.
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?
A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
A suite of integrated tools for creating, running, and managing tests to ensure code quality and reliability.
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Tag not monitored by Microsoft.
You can also have a look at reading PDF files with Visual Studio 2022. This is an example to render PDFs with ComPDF.
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.
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
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.
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