Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Your lack of ambition is troubling

by space_monk (Chaplain)
on Apr 16, 2013 at 17:31 UTC ( #1028967=note: print w/ replies, xml ) Need Help??


in reply to Re: How Can I get the Word Document Page Number in Perl Using Linux?
in thread How Can I get the Word Document Page Number in Perl Using Linux?

Never ask for a pony when you can ask for a unicorn! :-)

A Monk aims to give answers to those who have none, and to learn from those who know more.


Comment on Your lack of ambition is troubling
Re: Your lack of ambition is troubling
by hdb (Prior) on Apr 16, 2013 at 18:02 UTC

    Here is something that gives you the page numbers for a small document, say 5 pages:

    perl -e 'print "$_\n" for (1..5)'
Re: Your lack of ambition is troubling
by hdb (Prior) on Apr 16, 2013 at 18:29 UTC

    This gives the text but no page numbers.

    use strict; use warnings; use Text::Extract::Word; my $file = Text::Extract::Word->new("test1.doc"); my $raw = $file->get_text(':raw'); print $raw;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2014-09-19 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (145 votes), past polls