I need to convert a docx to pdf and I am using docx4j-3.2.1 library for it. There is some format loss in the generated pdf output.
As can be seen clearly there are two notable issues. One is the size/dimension of image in the header that is reduced in generated pdf. It does not cover the full header area as is there in input.
Second is the font size which seem to have changed(or perhaps the font itself is changed)
How can I retain the dimension of original image on header in the generated pdf. Are there some methods that can be used to fine tune the conversion of docx to pdf.
Any help is greatly appreciated.
PS : The header image is taken from Google image search for header just for demonstration.