#!/bin/bash

fileName=$1
firstPage=$2
lastPage=$3


pdfinfo -box -f $firstPage -l $lastPage $fileName | grep '^Page' | grep -v 'Pages'

