<p>Is there a good library for extracting text from a PDF?  I'm willing to pay for it if I have to.</p>

<p>Something that works with C# or classic ASP (VBScript) would be ideal and I also need to be able to separate the pages from the PDF.</p>

<p><a href="https://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text">This question</a> had some interesting stuff, especially <a href="http://en.wikipedia.org/wiki/Pdftotext" rel="nofollow noreferrer">pdftotext</a> but I'd like to avoid calling to an external command-line app if I can.</p>

[{'answer_id': 46883, 'author': 'Doanair', 'author_id': 4774, 'author_profile': 'https://Stackoverflow.com/users/4774', 'pm_score': 0, 'selected': False, 'text': '<p>Here is a good list:\n<a href="http://csharp-source.net/open-source/pdf-libraries" rel="nofollow noreferrer">Open Source Libs for PDF/C#</a></p>\n\n<p>Most of these are geared toward creating PDFs, but they should have read capability as well.</p>\n\n<p>There is this one as well: <a href="http://www.lowagie.com/iText/" rel="nofollow noreferrer">iText</a></p>\n\n<p>I have only played with iText before. Nothing major.</p>\n'}, {'answer_id': 46897, 'author': 'Ferruccio', 'author_id': 4086, 'author_profile': 'https://Stackoverflow.com/users/4086', 'pm_score': 3, 'selected': True, 'text': "<p>You can use the IFilter interface built into Windows to extract text and properties (author, title, etc.) from any supported file type. It's a COM interface so you would have use the .NET interop facilities.</p>\n\n<p>You'd also have to download the free PDF IFilter driver from Adobe.</p>\n"}, {'answer_id': 46922, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>We\'ve used <a href="http://www.aspose.com/categories/default.aspx" rel="nofollow noreferrer">Aspose</a> with good results.</p>\n'}, {'answer_id': 8957250, 'author': 'Bobrovsky', 'author_id': 249690, 'author_profile': 'https://Stackoverflow.com/users/249690', 'pm_score': 0, 'selected': False, 'text': '<p><a href="https://bitmiracle.com/pdf-library/" rel="nofollow noreferrer">Docotic.Pdf library</a> can be used to extract formatted or plain text from PDF documents.</p>\n<p>The library can read PDF documents of any version (up to the latest published standard). Extraction of pages is also supported by the library.</p>\n<p>Links to sample code:</p>\n<ul>\n<li><a href="https://bitmiracle.com/blog/extract-text-from-pdf-in-net" rel="nofollow noreferrer">How to extract text from PDF</a></li>\n<li><a href="https://bitmiracle.com/pdf-library/help/extract-pages.aspx" rel="nofollow noreferrer">How to extract PDF pages</a></li>\n</ul>\n<p>Disclaimer: I work for the vendor of the library.</p>\n'}, {'answer_id': 28694922, 'author': 'Eugene', 'author_id': 712093, 'author_profile': 'https://Stackoverflow.com/users/712093', 'pm_score': 0, 'selected': False, 'text': '<p>Addition to the to the approved answer: there are also alternative commercial solutions to replace Adobe IFilter for text indexing (providing the similar API but also offering additional premium functionality):</p>\n\n<ol>\n<li><a href="http://www.foxitsoftware.com/products/ifilter/feature.php" rel="nofollow">Foxit PDF IFilter</a>: provides much faster text indexing comparing to Adobe\'s plugin.</li>\n<li><a href="http://www.pdflib.com/products/tet-pdf-ifilter/" rel="nofollow">PDFLib PDF iFilter</a>: includes support for damaged PDF documents plus the additional API to run your own queries.</li>\n</ol>\n\n<p>If you are looking for the single tool that can be used from both managed .NET apps and legacy programming languages like classic ASP or VB6 then this is where the commercial <a href="https://bytescout.com/products/developer/pdfextractorsdk/index.html" rel="nofollow">ByteScout PDF Extractor SDK</a> would fit as it provides both .NET and ActiveX/COM API. </p>\n\n<p><em>Disclaimer: I work for ByteScout</em></p>\n'}]
['https://Stackoverflow.com/questions/46869', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/305/']