R
regex_jedi
OK, I have searched the universe online and have not found anyone with
a solution that makes sense to me.
Here is what I am wanting to do:
I have a Word document. It contains text, and its formatted so that
the information on each line is somewhat important in its POSITION/
LOCATION. Like most Word docs, the information is in various fonts/
and variable spacing and font sizes apply, etc.
I would like to properly estimate the position of each word in any
given line and convert the same information to a mono-spaced text for
export.
Simply saving as a .txt file loses the positioning of each word
relative to the lines above and below it, obviously, because ASCII txt
is monospaced, while Word docs are reliant on fonts, kerns etc, for so
much of its positioning (not just the raw character position).
So.... What I would like to do is to write a routine that can
calculate (even if it is a reasonable estimate) the pixel position (or
DPI position, I guess in the print world) of the starting position of
each word on each line of a word document.
Is this possible? Is there something that could come close to doing
this? A function/routine, etc. Something I can access and execute
through COM/VB or such.
I am guessing Word programming gurus have had to figure out how to
location position in a word document for other reasons. Hoping this is
possible.
Regex Jedi...
a solution that makes sense to me.
Here is what I am wanting to do:
I have a Word document. It contains text, and its formatted so that
the information on each line is somewhat important in its POSITION/
LOCATION. Like most Word docs, the information is in various fonts/
and variable spacing and font sizes apply, etc.
I would like to properly estimate the position of each word in any
given line and convert the same information to a mono-spaced text for
export.
Simply saving as a .txt file loses the positioning of each word
relative to the lines above and below it, obviously, because ASCII txt
is monospaced, while Word docs are reliant on fonts, kerns etc, for so
much of its positioning (not just the raw character position).
So.... What I would like to do is to write a routine that can
calculate (even if it is a reasonable estimate) the pixel position (or
DPI position, I guess in the print world) of the starting position of
each word on each line of a word document.
Is this possible? Is there something that could come close to doing
this? A function/routine, etc. Something I can access and execute
through COM/VB or such.
I am guessing Word programming gurus have had to figure out how to
location position in a word document for other reasons. Hoping this is
possible.
Regex Jedi...