Setting Borders for images when converting docx to pdf

Hi,

Currently I’m working on the converting docx to pdf using writer api’s of libreoffice . when I’m trying to convert sample document(docx) to pdf which contains both text as well as image, it adds blue borders as default around the images in windows 7. But I didnt face this issue with Linux OS(Getting the pdf document whichever the formats i have specified in the docx).

Can anyone know what was the problem with this???Its working fine with Linux…Some issues when using this code with windows

Please hepl me how to remove this borders around images

Details:
LibreOffice 4.3.5
OS : Windows 7

Please can you attach a minimal sample file. (Voted the question, so you can upload the sample).