How to retrive header and footer from word document?

@tejastandel007 Can you refer to this post, Which might be able to get what you need.