Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

More seriously, your problem has no solution that does not involve running your document through Word. I found this reference http://www.word.mvps.org/Downloads/WordsNumberingExplainedUSLetter.pdf, page 16:

It is worth mentioning that in Word, “pages” do not exist in the document file. Like a professional typesetter, Word makes up its pages on the fly when it displays or prints a document. Word uses measurements from the installed fonts and the installed printer driver to do this. It is almost impossible to get two machines so exactly similar that a document will paginate with exactly the same page breaks on each. Sometimes people complain that when they open the document on a different machine, some of the page numbers in the TOC or Index are “wrong”. They’re not: when the document is opened on the other machine, minute variations in set-up that do not show over a ten page memo will cause variations in the position of page breaks in a 1,000-page manual. If you remember to update the TOC and Index before you print, the problem corrects itself.

So the page numbers do not exist in the document, therefore you cannot retrieve them to split the text into pages. Only Word can do that for you.

PS.: Apologies for my little joke on the page numbers above...


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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found