FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170779] Thu, 25 November 2010 19:40 Go to next message
Amit Prakash Pawar is currently offline  Amit Prakash Pawar
Messages: 10
Registered: October 2010
Karma: 0
Junior Member
Hi,

I am uploading all types of files. After upload i want to calculate
number of pages of uploaded file?
The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
images) etc.

How to calculate number of pages?

Any Api available?
Re: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170780 is a reply to message #170779] Thu, 25 November 2010 19:56 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 25-11-10 20:40, Amit Prakash Pawar wrote:
> Hi,
>
> I am uploading all types of files. After upload i want to calculate
> number of pages of uploaded file?
> The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
> images) etc.
>
> How to calculate number of pages?
>
> Any Api available?

For PDF and TXT you can use this url:
http://tinyurl.com/33sz3ue

It was found as 1st reference when googling for:
"php doc number of pages"

The reset of the file formats seems to be Microsoft related...?

--
Luuk
Re: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170781 is a reply to message #170780] Thu, 25 November 2010 20:02 Go to previous messageGo to next message
Amit Prakash Pawar is currently offline  Amit Prakash Pawar
Messages: 10
Registered: October 2010
Karma: 0
Junior Member
On Nov 26, 12:56 am, Luuk <L...@invalid.lan> wrote:
> On 25-11-10 20:40, Amit Prakash Pawar wrote:
>
>> Hi,
>
>> I am uploading all types of files. After upload i want to calculate
>> number of pages of uploaded file?
>> The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
>> images) etc.
>
>> How to calculate number of pages?
>
>> Any Api available?
>
> For PDF and TXT you can use this url:http://tinyurl.com/33sz3ue
>
> It was found as 1st reference when googling for:
> "php doc number of pages"
>
> The reset of the file formats seems to be Microsoft related...?
>
> --
> Luuk


Is it any way to upload files to google doc and
find out page numbers?
Re: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170782 is a reply to message #170781] Thu, 25 November 2010 20:25 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 25-11-10 21:02, Amit Prakash Pawar wrote:
> On Nov 26, 12:56 am, Luuk<L...@invalid.lan> wrote:
>> On 25-11-10 20:40, Amit Prakash Pawar wrote:
>>
>>> Hi,
>>
>>> I am uploading all types of files. After upload i want to calculate
>>> number of pages of uploaded file?
>>> The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
>>> images) etc.
>>
>>> How to calculate number of pages?
>>
>>> Any Api available?
>>
>> For PDF and TXT you can use this url:http://tinyurl.com/33sz3ue
>>
>> It was found as 1st reference when googling for:
>> "php doc number of pages"
>>
>> The reset of the file formats seems to be Microsoft related...?
>>
>> --
>> Luuk
>
>
> Is it any way to upload files to google doc and
> find out page numbers?

search for "upload files to google" or something
and find out....

But it had nothing to do with PHP,
but maybe, i dont know the google-api, it can be done with PHP

Another way to do it:
1) Hire a blonde
2) Get a printer
3) Teach her how to print the docs
4) Let her count the number of pages

watch it, point 3 is the difficult part....

;-)




--
Luuk
Re: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170783 is a reply to message #170782] Thu, 25 November 2010 20:52 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 25-11-10 21:25, Luuk wrote:
> On 25-11-10 21:02, Amit Prakash Pawar wrote:
>> On Nov 26, 12:56 am, Luuk<L...@invalid.lan> wrote:
>>> On 25-11-10 20:40, Amit Prakash Pawar wrote:
>>>
>>>> Hi,
>>>
>>>> I am uploading all types of files. After upload i want to calculate
>>>> number of pages of uploaded file?
>>>> The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
>>>> images) etc.
>>>
>>>> How to calculate number of pages?
>>>
>>>> Any Api available?
>>>
>>> For PDF and TXT you can use this url:http://tinyurl.com/33sz3ue
>>>
>>> It was found as 1st reference when googling for:
>>> "php doc number of pages"
>>>
>>> The reset of the file formats seems to be Microsoft related...?
>>>
>>> --
>>> Luuk
>>
>>
>> Is it any way to upload files to google doc and
>> find out page numbers?
>
> search for "upload files to google" or something
> and find out....
>
> But it had nothing to do with PHP,
> but maybe, i dont know the google-api, it can be done with PHP
>
> Another way to do it:
> 1) Hire a blonde
> 2) Get a printer
> 3) Teach her how to print the docs
> 4) Let her count the number of pages
>
> watch it, point 3 is the difficult part....
>
> ;-)
>
>
>
>

The (more) correct answer to your question is, of course, that the
number of pages of ANY files depends on the page-size, and format, in
which it is printed.

So, without knowing this info, its impossible to tell you how many pages
a file has....

--
Luuk
Re: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc) [message #170784 is a reply to message #170779] Thu, 25 November 2010 20:57 Go to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Nov 25, 7:40 pm, Amit Prakash Pawar <amitppawar2...@gmail.com>
wrote:
> Hi,
>
> I am uploading all types of files. After upload i want to calculate
> number of pages of uploaded file?
> The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out
> images) etc.
>
> How to calculate number of pages?

The number of pages depends on the printer and the paper on which one
prints the document, so no, you cannot do this.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Loading missing extensions in Windows
Next Topic: URL-String-concatenation within a Loop in cURL: [a easy one]
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:06:01 GMT 2024

Total time taken to generate the page: 0.02348 seconds