Convert Text Box Information
For Microsoft Word Processing documents (DOCX) that have the KeyView format MS_Word_2007_Fmt
, XML Export exposes the information from the file that is used to position text boxes on the page.
The TextBox
element surrounds text that was contained in a positioned text box, and it has the following format:
<TextBox width="6.75in" height="0.75in" anchor-horizontal="column" anchor-vertical="paragraph" offset-x="0.25in" offset-y="4in">
The width
, height
, offset-x
, and offset-y
elements are all lengths in inches. The following tables describe the possible options for the anchor-horizontal
and anchor-vertical
attributes.
anchor-horizontal value | Description |
---|---|
character | offset-x is relative to the current position in the text. |
page | offset-x is relative to the left border of the page. |
margin | offset-x is relative to the left margin. |
column | offset-x is relative to the left of the current column. |
anchor-vertical value | Description |
---|---|
line | offset-y is relative to the current position in the text. |
page | offset-y is relative to the top border of the page. |
margin | offset-y is relative to the top margin. |
paragraph | offset-y is relative to the top of the current paragraph. |