caherrera/pdfinfo

Parse pdfinfo from shell to php 5.6+

Installs: 306

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/caherrera/pdfinfo

v1.0.4 2017-05-16 02:58 UTC

This package is auto-updated.

Last update: 2025-10-08 09:32:48 UTC


README

Description

This is another version from parse pdfinfo from howtomakeaturn/pdfinfo adding -box details

1. Install pdfinfo

Ubuntu

$ sudo apt install poppler-utils

Centos

$ sudo yum install poppler

2. Usage

$pdfInfo = new PdfInfo(__DIR__.'/../../example/QantasCashAU_Verification.pdf');

Reference

Currently this library supports the following metadata:

  • title
  • author
  • creator
  • producer
  • creationDate
  • modDate
  • tagged
  • form
  • pages
  • encrypted
  • pageSize
  • fileSize
  • optimized
  • PDFVersion
  • mediaBox instance of PdfInfoBox
  • cropBox instance of PdfInfoBox
  • bleedBox instance of PdfInfoBox
  • trimBox instance of PdfInfoBox
  • artBox instance of PdfInfoBox

Properties for PdfInfoBox

  • left
  • right
  • top
  • bottom
  • sizeX
  • sizeY
  • imageAspectRatio