[CentOS] Command line tool to display number of pages in a PostScript document?

Frank Cox theatre at sasktel.net
Mon Sep 7 17:53:10 UTC 2009


On Mon, 07 Sep 2009 12:12:12 +0200
Niki Kovacs wrote:

> I'm looking for a way to get the number of pages contained in a 
> PostScript document, so I can use it in a script.

grep \%\%Page\: file.ps | wc -l


-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com



More information about the CentOS mailing list