PDF Generated Output Different from Online View

I just realized that PDFs generated seem different from the online view.

PDF Output:

Online View:

At first I thought the fonts were different so I repeated the steps in “https://github.com/frappe/fonts” but it didnt work. If you notice the table also does not have the grey filled headers as seen in the online view. Does anyone know what could be the problem?