Re: how to get page count when uploading files

From: Date: Sat, 16 Sep 2006 18:49:00 +0000
Subject: Re: how to get page count when uploading files
Groups: php.general 
Request: Send a blank email to php-general+get-241863@lists.php.net to get a copy of this message
I really need help and after going through the help page, I don't know where I can post my question. When I upload a file (word or pdf), how can I know the page counts of that file immediately? Thank you, Jian
There's no function in the PDF library to READ the file. And about Word documents (.doc): Word calculates the amount of pages at 'parsetime'. Word documents are just RTF files, and they don't describe the amount of pages in the files. So it's really tricky to make a script that counts the pages in Word documents, as you would have to make an RTF parser. :/

« previous php.general (#241863) next »