I'm modifying a Microsoft Word (.docx) file via its XML contents, and as I'm creating references to images, I'm noticing that the size of them are screwed up. I did a bit of looking around online and everyone's referring to pixel dimensions * EMUs to get this value. However, I'm not experiencing this same thing. They're stating that 1 pixel = 9525 EMUs, so therefore using the example below, 802 * 9525 would have to equal 5153025, which it doesn't.
If I take a look at image1 for example, it's 802x164, and image2 is 722x503. The wp:content and a:ext values that were generated (in respective order) are:
- Code: Select all
<wp:extent cx="5153025" cy="1053736"/> <a:ext cx="5153025" cy="1053736"/>
<wp:extent cx="5553075" cy="3868694"/> <a:ext cx="5553075" cy="3868694"/>
which doesn't make sense.
Any help would be greatly appreciated. This is the last thing I need to resolve before becoming successful with my goal. :\