RE: how to get page count when uploading files

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

 



Oh, btw, I use PHP ftp function to upload the file, but there is no
information in $_FILES to tell me the total page for Word or PDF file. 

Really appreciated your time and help!

Thank you very much! Jian

-----Original Message-----
From: Stefan van der Linden [mailto:stefan.vanderlinden@xxxxxxxxx] 
Sent: 2006年9月17日 2:49
To: jian.fu@xxxxxxxxxxxxxxxxxx
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  how to get page count when uploading files

>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. :/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux