PHPackages                             csoellinger/xpdf-cli-pdfinfo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. csoellinger/xpdf-cli-pdfinfo

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

csoellinger/xpdf-cli-pdfinfo
============================

A little PHP wrapper around the Xpdf cli tool: pdfinfo.

v1.1.2(4y ago)03.1k—5%MITPHPPHP &gt;=7.0CI failing

Since Feb 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/CSoellinger/php-xpdf-cli-pdfinfo)[ Packagist](https://packagist.org/packages/csoellinger/xpdf-cli-pdfinfo)[ Docs](https://github.com/CSoellinger/php-xpdf-cli-pdfinfo)[ RSS](/packages/csoellinger-xpdf-cli-pdfinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

Xpdf Cli - pdfinfo
==================

[](#xpdf-cli---pdfinfo)

A little PHP wrapper around the [Xpdf cli tool: pdfinfo](https://www.xpdfreader.com/).

Fetching the following informations and make them easy accessible:

- Producer
- Creation date
- Modified date
- Tagged
- Form
- Pages
- Encrypted
- Page size
    - Width as points
    - Height as points
    - Format
    - Rotated Degrees
- Box (Media, Crop, Bleed, Trim, Art)
    - X coordinate as points
    - Y coordinate as points
    - Width as points
    - Height as points
- File size
    - Bytes
- Optimized
- PDF version

Note: If you have a password protected pdf file, and not setting the password param, you will get a process failed exception.

Getting Started
---------------

[](#getting-started)

PHP 7 or above and Composer is expected to be installed on your system.

Installing
----------

[](#installing)

```
composer require csoellinger/xpdf-cli-pdfinfo

```

Usage
-----

[](#usage)

```
