计算分组形状的绝对大小和位置 [英] Calculate absolute sizes and positions of grouped shapes

查看:100
本文介绍了计算分组形状的绝对大小和位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


1 。)我们有一组两个形状(group.docx)。 它们的范围和偏移定义如下。

1.) We have a group of two shapes (group.docx).  Their extents and offsets defined as follows.

    <wpg:wgp>
                <a:xfrm>
                  <a:off x="0" y="0"/>
                  <a:ext cx="9117584" cy="572082"/>
                  <a:chOff x="2144" y="360"/>
                  <a:chExt cx="11536" cy="1138"/>
                </a:xfrm>
      <wps:wsp>
                  <a:xfrm>
                    <a:off x="2149" y="360"/>
                    <a:ext cx="0" cy="1138"/>
                  </a:xfrm>
                  <a:prstGeom prst="line">
                  <a:ln w="6350">
      </wps:wsp>
      <wps:wsp>
                  <a:xfrm>
                    <a:off x="2144" y="1462"/>
                    <a:ext cx="11536" cy="0"/>
                  </a:xfrm>
                  <a:prstGeom prst="line">
                  <a:ln w="45720">






2。)如果我取消组合这些形状(ungroup.docx ),Word以这种方式写出它们的偏移量/范围。

2.) If I ungroup those shapes (ungroup.docx), Word writes their offsets/extents this way.

    <wps:wsp>
                <a:xfrm>
                  <a:off x="0" y="0"/>
                  <a:ext cx="0" cy="572082"/>
                </a:xfrm>
                <a:prstGeom prst="line">
                <a:ln w="6350">
    <wps:wsp>
                <a:xfrm>
                  <a:off x="0" y="0"/>
                  <a:ext cx="9117584" cy="0"/>
                </a:xfrm>
                <a:prstGeom prst="line">
                <a:ln w="45720">





Office OpenXML规范(第1部分)中的附件L.4.2描述了转换过程。






我的问题是我无法弄清楚如何计算2.)来自1.)在实践中。

My problem is that I cannot figure out how to calculate 2.) from 1.) in practice.



group .docx


ungroup.docx



感谢您的帮助,

Thanks for a help,


Igor

Igor

推荐答案

谢谢你,伊戈尔,对于您的问题。工程师会尽快与您联系。
Thank you, Igor, for your question.  An engineer will contact you soon.


这篇关于计算分组形状的绝对大小和位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆