I have a docx document which consists of some paragraphs and I have to get coordinates (x, y) of this elements from left top corner of document.
I find something like this:
try (InputStream is = new FileInputStream(path)) {
XWPFDocument doc = new XWPFDocument(is);
final List<IBodyElement> bodyElements = doc.getBodyElements();
int x = bodyElements.get(0).getX(); // How can I get something like this?
}
How can I get this information? I couldn't find it in web.
Thanks for help!