HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] How to get page count for faxcover?



Maurizio Manetti wrote:
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*




Project hosted by iFAX Solutions