SproutCMS

This is the code documentation for the SproutCMS project

function getPageCount()

Use 'exiftool' to determine the number of pages in a file

Usage

int FileConvert::getPageCount ( string $filename );

Arguments

  1. string $filename
    Server filename

Exceptions thrown

  • Exception
  • RuntimeException
    exiftool isn't installed/accessible to PHP
  • FileConversionException
    exiftool was unable to determine the page count

Return value

  • int
    Number of pages