How Many Pages are in a PDF?

Dr. Hawkins dochawk at
Wed May 29 10:44:30 EDT 2013

On Wed, May 29, 2013 at 6:21 AM, Ray Horsley <ray at> wrote:
> Anybody know how to get this?  I've tried loading the PDF into a player but this
>only gives me access to things in terms of time such as the TimeScale and the
>CurrentTime of the player.

from unix commands,

pdfinfo thefile.pdf

and grep for pagess, or

strings thefile.pdf | grep Count | tail -1 |sed -e "s/.*Count.\([0-9]\{1,\

checks for page indicators.

I've used both.

Dr. Richard E. Hawkins, Esq.
(702) 508-8462

More information about the Use-livecode mailing list