3

Possible Duplicate:
Reading PDF documents in .Net

Is any free library to render pdf. I need to parse pdf and show images and text separately... Will be thankful for any information!

Community
  • 1
  • 1
Ievgen
  • 4,261
  • 7
  • 75
  • 124

2 Answers2

4

http://pdfsharp.com/PDFsharp/

This is the one I've been using..

nik0lai
  • 2,585
  • 23
  • 37
  • 1
    From the FAQ: "Can I use PDFsharp to extract text from PDF? This can be done at a low level. You can get at the characters in the order they are drawn - and most applications draw them from top-left to bottom-right. There are no high-level functions that return words, paragraphs, or whole pages." I've tried that approach, the output is crap. – Marc Nov 24 '15 at 08:53
3

Take a look at iTextSharp. It is a C# port of iText. It is licensed under the AGPL v3. It should be able to pull out the text for you.

Ahmad Mageed
  • 94,561
  • 19
  • 163
  • 174
Matt Glover
  • 1,347
  • 7
  • 13
  • 1
    I have this library! Is any examples how to get text or images from pdf? – Ievgen Jan 23 '11 at 18:02
  • 2
    Check out the answer here for an image extraction example: http://stackoverflow.com/questions/802269/itextsharp-extract-images – Matt Glover Jan 23 '11 at 20:44
  • 4
    iTextSharp (versions after 5.0) may be not that free as one may think. See itextpdf.com/terms-of-use for more info. – Bobrovsky Jan 24 '11 at 03:01
  • 3
    Yes it is definitely important to understand the terms of the AGPLv3. It often requires publishing your source code, among other things, if you wish to use the iText stuff freely. – Matt Glover Jan 24 '11 at 15:17