Hylafax Mailing List Archives |
Joe wrote:
Does anyone know a method to count the number of pages in a tiff or a pdf so that it can be passed to faxcover?
Maybe you can use something like identify $YOURFILE | wc -l
identify is a tool to gather informations about images. For tiffs, pdfs and other multipage formats, it prints a line for each page. It is part of the ImageMagick suite: http://www.imagemagick.org/script/index.php
Ok... I may be able the get that working with hylafax. Indentify executes very slow though... 10 seconds on a 4 page tiff.
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
|