本文介绍了如何通过OpenXML获取Run或其他WordProcessing元素的坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用OpenXML SDK在Word文档的页面上找到特定Run(文本,无图形或具有偏移参数的其他元素)的坐标.我知道OpenXML基本上是XML,并且简单运行没有嵌入相对的数字位置.

I was wondering if it is possible to find the coordinates of a specific Run (text, no drawing or other elements that have offset parameter) on a page in a Word document using OpenXML SDK. I know that OpenXML is basically .. well XML, and simple runs have no relative, numerical position embedded in them.

我正在阅读OpenXML SDK API,没有发现任何线索,但是也许我错过了一些东西.坐标是指如果我会在页面外生成图像的情况下可以映射到像素的任何元组(假设您制作了页面的屏幕截图)

I was reading through OpenXML SDK API and found no clues but maybe I have missed something. By coordinates I mean any tuple that can be mapped to pixels if I would generated an image out of the page (imagine you made a screenshot of page)

我怀疑,如果可能的话,这并非微不足道.

I suspect, if this is possible, it is not trivial.

感谢您的帮助!

推荐答案

Open XML SDK不包含此功能.这将需要一个布局引擎,它不是SDK的一部分.

The Open XML SDK does not include this functionality. This would require a layout engine, which is not part of the SDK.

这篇关于如何通过OpenXML获取Run或其他WordProcessing元素的坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 14:05