Thanks for your reply, i want to add one more point here.
When we try to view that file using a Java script in UI it is opening properly, only problem is when we download that file using a PERL script to our local path it's not opening.
Any idea for this issue?
Regards,
Anil