PDFInfo is a simple PDF analysis tool that displays information stored inside PDF documents. It can show details such as the software used to create the PDF, creation date, page count, file size, encryption status, and other document properties. You can install and use PDFInfo in Termux to inspect PDF files and view their metadata from the Termux terminal using some simple commands.
Here’s what you can do with PDFInfo in Termux:
- View PDF metadata
- Check PDF creation details
- Display page count and file size
- Check PDF encryption status
- View PDF version information
- Learn basic PDF metadata analysis
Install PDFInfo Tool in Termux
Below are the simple commands to install PDFInfo in Termux. Follow each command carefully to install the required package and setup PDFInfo successfully for viewing PDF information and metadata in the terminal.
Update Termux packages.
pkg update && pkg upgrade -yInstall the Poppler package.
pkg install poppler -yCheck whether PDFInfo is installed successfully.
pdfinfo -vUse PDFInfo Tool in Termux
First, allow Termux to access your device storage.
termux-setup-storageAfter granting permission, copy a PDF file from your internal storage to the Termux home directory. For example:
cp /sdcard/Download/file.pdf ~/Move to the Termux home directory.
cd ~Display information from the PDF file.
pdfinfo file.pdfYou can also check a PDF directly using its full path.
pdfinfo /sdcard/Download/file.pdfSave the PDF information into a text file.
pdfinfo file.pdf > info.txtView the saved information file.
cat info.txtInformation Displayed by PDFInfo
PDFInfo reads the metadata and properties stored inside a PDF file. Depending on the document, it can display information such as:
- Producer : Shows the software used to create the PDF.
- Creation Date : Displays when the PDF was created.
- Custom Metadata : Indicates whether custom metadata is available.
- Metadata Stream : Shows if the PDF contains a metadata stream.
- Tagged : Indicates whether the PDF is tagged for accessibility.
- User Properties : Shows whether user-defined properties exist.
- Suspects : Indicates if any suspicious PDF structure is detected.
- Form : Displays information about PDF forms.
- JavaScript : Shows whether JavaScript is embedded in the PDF.
- Pages : Displays the total number of pages.
- Encrypted : Indicates whether the PDF is password protected.
- Page Size : Shows the dimensions of the PDF pages.
- Page Rotation : Displays page rotation settings.
- File Size : Shows the size of the PDF file.
- Optimized : Indicates whether the PDF is optimized for web viewing.
- PDF Version : Displays the PDF format version used by the document.
Choose a PDF file and PDFInfo will automatically display the available metadata and document information inside the Termux terminal.

