Thanks for all suggestions. Here are some more details. This script is to create an index for a book. The word files will only reside on one computer, and so, the issues with changing computers and different printers goes away. Using paragraphs does not work since any paragraph could be on 2 pages at once and then a page number associated with a name would be wrong. I am not forced to do this with Word. So changing to pdf could be an option since an index for a book can be provided with a pdf file. I was asking about using pdf, but could not determine if page numbers are associated with the text. For instance, if I search for bob jones in the pdf file, is there meta-data that tells what page number that name appears?

In reply to Re^2: Indexing of Word documents by axiomcrs
in thread Indexing of Word documents by axiomcrs

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.