Interacting with .DOC files and/or .PDF files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nlaginha
Forum Newbie
Posts: 1
Joined: Sat Jul 22, 2006 11:24 pm

Interacting with .DOC files and/or .PDF files

Post by nlaginha »

Hi friends, I´m new here and I need your help urgently :(

I would like to get the number of pages of a .DOC file and/or .PDF file. The situation is... A user sends a text file to server (upload) and the system reply the number of pages of that file. Maybe this is simple to resolv, but I can´t find how to do this as I´m begining in PHP programming.

Does anybody know how can I do this?

I´ve tried COM...

thanks a lot
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

To get pdf file details you can use the following http://linuxcommand.org/man_pages/pdfinfo1.html
Post Reply