When you use the universal method, Ctrl+P, to print a website as PDF, it gets changed as per the browser. That is why you can capture a screenshot and convert it into a PDF. This way, the look will be preserved without any issue. However, it is pretty time-consuming to get the outcome.