Extract text from PDF in CLI

How to Extract text from PDF using Aspose.PDF CLI

How to extract text from PDF using Aspose.PDF for Aspose.PDF CLI

Do you need to extract text from PDF? Let’s use Aspose.PDF CLI API. The tool is powered by the Aspose.PDF for C++ library and is available for different operating systems including macOS, Linux, and Windows. You can download its versions directly from Aspose.PDF CLI App. Working with command lines is simple and clear. Just use the command line to execute specific commands related to PDF processing. Choose from a range of available functionalities (e.g., text extraction, encryption, adding watermarks, etc) to perform on the PDF.

Extract text from PDF in CLI


You need Aspose.PDF CLI to try the example in your environment.

  1. Run application with particular command.
  2. Use command text.
  3. Pass the PDF.
  4. Extract text from PDF.

Extract text from PDF with CLI

This sample code shows how to extract text from PDF documents

> asposepdftool text [output-file]

About Aspose.PDF for Aspose.PDF CLI API

Our .NET Library can combine a document from any supported download format to any supported save format. Aspose.PDF for .NET library provides fairly universal solutions that will help you solve the tasks of merging documents. Aspose.PDF supports the most significant number of popular document formats, both for loading and saving. Draw your attention to the fact that the current section describes only popular merges. The current page provides information about merging TEXT to {{FILERESULT}}. However, there are many combinations for merging your files. For a complete list of supported formats, see the section Supported File Formats.