WordProcessingML 形状问题
我目前正在致力于将信息从浏览器导出到word文档。我有包含颜色和形状的信息。现在,当我使用 wordprocessingML 导出它们时,我可以导出以颜色突出显示的文本。但我在浏览器中也有一些用圆圈广告框封装的文本。我发现使用 VML 我们可以渲染形状。但我希望形状位于指定的 x 轴和 y 轴中,以便正确呈现文本。有没有办法使用“this.x”、“this.y”等关键字指定形状中的坐标。与此类似的东西可以在文本上渲染形状。不知道我说清楚了没有。想对此进行更多讨论。
I am currently working on exporting information from browser to word document. I am having information which contains colors and shapes. Now when I export them using wordprocessingML I am able to export text that are highlighted in colors. But I am also having certain text in browser that are encapsulated with circles ad box. I found that using VML we can render shapes. But I want the shapes to be in the specified x-axis and y-axis, so that it renders the text properly. Is there is any way to specify co-ordinates in shapes using keywords like "this.x", "this.y". Something similar to this to render the shapes on the text. I am not sure whether I am clear. Would like to discuss more about this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到了这个问题的解决方案。我们可以使用“auto”关键字,它可以根据页面的流动来查找word文档中形状的相对位置。现在我的问题是,当我通过 margin-left:auto, margin-top;auto 时,我能够以正确的尺寸显示形状。但我还在文本属性中包含了文本,我希望形状重叠。我在文本旁边获取形状,而不是环绕文本。有谁知道解决办法吗,我可以试试。我发现从事 wordml 工作非常有趣。
I have found that solution for this problem. We can use "auto" keyword which can be used to find the relative position of the shapes in the worddocument according to the flow of the page. Now my question when I passed margin-left:auto, margin-top;auto, I was able to display the shapes in the right dimension. But I have also included text inside the text attribute which I want the shapes to be overlapped. I am getting shapes aside the text, not wrapping the text. Does anyone know the solution, I can try it. I find it really interesting to work on wordml.