Hi, I have a project in which I have to deal with a massive amount of Docx documents. I need to construct one collective manual out of tens of individual documents.
During the merging process I need to copy some images. Now normally this should be relatively easy by calling XWPFRun.getEmbeddedPictures(), but in my case this doesn't provide any output. So I'm guessing the pictures aren't purely embedded, but linked or attached in some other way. I can, however, get the required images with XWPFDocument.getAllPictures(). But in this method I get XWPFPictureData objects, which lack some properties an XWPFPicture has, like which XWPFRun the image "belongs" to. Does anyone here have an idea how that link could be made? I thought of relationships, but apparently they're only on the physical side, ie. which document the image belongs to, not logical side, ie. which text part (aka run) it belongs to. Any help would be appreciated! Best regards, Janne Jokitalo
