Counting Pages in a File

Taking care of your Linux box.
Post Reply
syedali999
Battalion Havaldaar Major
Posts: 252
Joined: Sun May 29, 2005 1:45 am
Location: Karachi
Contact:

Counting Pages in a File

Post by syedali999 »

Dear All,

Any one knows any shell script / php script that can count that how many pages the file contains of the following types :

RTF
TXT
Doc
PDF

i want to do it for a Fax Server Preparation. that a user upload a file and i can bill him / her.

*if a page setup is set to "Legal" then the script calculate it according to A-4"

Thanks,

=====
S. Rizvi
=====
Customer Support Executive (C.S.E)
World Online (TM)
CyberSoft Technologies Inc.
fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Post by fawad »

syedali999, look into OpenOffice.org scripting. It is very easy to execute OpenOffice macros from the commandline, and OOO can read in all the document types that you mentioned except PDF.
syedali999
Battalion Havaldaar Major
Posts: 252
Joined: Sun May 29, 2005 1:45 am
Location: Karachi
Contact:

hi

Post by syedali999 »

Any Details????
Post Reply