Niki Kovacs
2009-Sep-07 10:12 UTC
[CentOS] Command line tool to display number of pages in a PostScript document?
Hi, 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. Any suggestions? Niki
Akemi Yagi
2009-Sep-07 11:35 UTC
[CentOS] Command line tool to display number of pages in a PostScript document?
On Mon, Sep 7, 2009 at 3:12 AM, Niki Kovacs<contact at kikinovak.net> wrote:> Hi, > > 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. > > Any suggestions?One quick and dirty method will be to count the word "showpage' that is not commented out. But this may not give you an accurate number of pages (some aliases might be used). Akemi
Frank Cox
2009-Sep-07 17:53 UTC
[CentOS] Command line tool to display number of pages in a PostScript document?
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