WordML extent differs from extent values shown within Word

Connor Shore 186 Reputation points
2022-03-31T21:31:56.057+00:00

Hello,
Right now I'm having an issue figuring out where the correct extent value for a textbox is stored. In the word document, for the textbox that contains the text "Standard", you will notice it has a height of 0.21" and a width of 0.74".
188920-image.png

However, when I look in the document.xml for the same file, you will notice the extent for the width is set to 675640 emus (0.74") which is correct, however the extent for the height is set to 1404620 (1.53") which is very different.
188946-image.png

I'm confused where the height of 0.21" is being saved as the extent in the document.xml seems to be very different than what is rendered in the document.

Thanks in advance,
Connor

Link To Example Document: https://windwardstudios.box.com/s/0h35idjz0tuif0sghs0a0rfkcqet1z8o

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
122 questions
{count} votes

Accepted answer
  1. Hung-Chun Yu 976 Reputation points Microsoft Employee
    2022-04-01T16:44:18.643+00:00

    Hi @Connor Shore

    I found out what happened, the reason you don't see the height at 1.53" when you load the document in word is because of the a:spAutoFit/

    189275-image.png
    189295-image.png
    189333-image.png

    If you remove that from the document.xml and reload the example document, you would see the following

    189285-image.png

    Let me know if this answered your question?


0 additional answers

Sort by: Most helpful