How Many Pages are in a PDF?

Dr. Hawkins dochawk at gmail.com
Wed May 29 09:44:30 CDT 2013


On Wed, May 29, 2013 at 6:21 AM, Ray Horsley <ray at linkit.com> 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,\
}\).*/\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