Search PDF via Python
Advanced PDF document search. Use Aspose.PDF for Python for .NET to modify PDF documents programmatically
How to Search PDF File Using Python
In order to search PDF file, we’ll use Aspose.PDF for .NET API which is a feature-rich, powerful and easy to use document manipulation API for python-net platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Search PDF File via Python
You need Aspose.PDF for Python via .NET to try the code in your environment.
- Load the PDF with an instance of Document.
- Create TextFragmentAbsorber Object with text to find as parameter.
- Get all extracted text fragments collection.
- Loop through each fragment to get all of its information.