'Adding a logo in printed page (pdf) not in actual page using react-to-print

I'm trying to add a logo on top of the printed page not in the page that browser or device renders. I'm using react-to-print to print page in PDF format.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source