Thanks for your reply.
We tested the jar you shared with us but it didn’t solved our problem. Still we are getting white spaces on right and bottom of image. We have attached the output for the document we tried to get the preview for.
Kindly look at this on priority as this is required on urgent basis.
output.png (23.4 KB)
The visio file used is :-
tf16403552.zip (55.0 KB)