Extract PDF using PHP
How to extract text and images from PDF using Aspose.PDF for PHP via Java library
The most popular action with a Parser
How to parse PDF with Aspose.PDF for PHP via Java Library
To extract PDF files, we’ll use Aspose.PDF for .NET API, which is a feature-rich, powerful, and easy-to-use document manipulation API for php-java platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Parse PDF using PHP
You need Aspose.PDF library to try the code in your environment.
- Load the PDF with an instance of Document.
- Create a TextAbsorber object to extract text.
- Accept the absorber for all the pages.
- Get the extracted text
- Create a writer and open the file, write a line of text to the file
Extract PDF Files - PHP
This sample code shows how to extract PDF documents
Input file:
File not added
Output format:
Output file: