Setting the Anchor of an image
Posted: Tue Jul 22, 2014 1:15 am
Hello everyone,
I was wondering if there was a possible way to simply set the anchor of an image to something such as "to page", "to paragraph", or "to character" as you can do when creating an image in the GUI. Whenever I create an image it appears to be set as anchor "as character" which is causing the image to be cropped to the size of a character even though the entire image is there. I can fix the problem by changing the anchor of the image to anything else while editing the docx file in the GUI but I cant find a way to do this in docx4j.
I was wondering if there was a possible way to simply set the anchor of an image to something such as "to page", "to paragraph", or "to character" as you can do when creating an image in the GUI. Whenever I create an image it appears to be set as anchor "as character" which is causing the image to be cropped to the size of a character even though the entire image is there. I can fix the problem by changing the anchor of the image to anything else while editing the docx file in the GUI but I cant find a way to do this in docx4j.