I am trying to replicate a header and a footerfrom words to latex, the heading looks like what I have attached to this question. Is it possible with fancy heading? Can someone please help me? I really appreciate it.

Update 1: So far was able to generate the heading with the following code, assuming that the image logo in the header sample above is called "sample_image". The issue is that the horizontal line is now on top of the image which is not what I intended to have. Still not able to make the footer.

\fancyhead[C]{%
\begin{tabular}{ @{} p{\textwidth} @{} }
\hfill{{Name of the docuemnt} \\
\hline
\hfill \nouppercase{\rightmark}
\end{tabular}}

\begin{tabular}{ @{} p{0.0\textwidth} @{} }
\\
\hfill\includegraphics[width=.35\textwidth, keepaspectratio]{sample_image} \\
\\
\hfill
\end{tabular}}

\fancyhead[R]{%

• Everything is possible. What do you have so far? Generally we often do not reply to questions like this as it is more of a please do this for me type of question which is not suited for a Q&A site. – daleif Apr 6 at 10:28