question

Jackson1990-7147 avatar image
0 Votes"
Jackson1990-7147 asked AminDodin-1022 answered

Read PDF file

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

vs-generalvs-debuggingvs-msbuildvs-testing
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered

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





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ezreal95-7594 avatar image
0 Votes"
Ezreal95-7594 answered Ezreal95-7594 rolled back

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AminDodin-1022 avatar image
0 Votes"
AminDodin-1022 answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.