Re: Command line tool to display number of pages in a PostScript document?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Akemi Yagi a écrit :

> 
> 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).

I found a neat solution, finally. My initial document is a PDF, so here 
goes:

$ pdfinfo file.pdf | grep Pages | cut -d : -f 2 | tr -d ' '

Cheers,

Niki
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux