Hi there,
I currently encounter an issue about image border. I used the following code to input a logo to header, but the inserted image has a very tiny border when saving the word file to pdf. Can anybody give me advice to remove it? Our current version is 10.7.0. (Word - java)
InputStream stream = getClass().getResourceAsStream("…/resource/carrierlogo-wm.png");
Shape shape = null;
try
{
shape = builder.insertImage(stream);
}
catch (Exception e)
{
e.printStackTrace();
}
ImageSize imageSize = shape.getImageData().getImageSize();
shape.setWidth(imageSize.getWidthPoints() * 1.0);
shape.setHeight(imageSize.getHeightPoints() * 1.0);
Thanks a lot,
Sheng