Incorrect pdf view

The pdf view is not showing correct preview, if I print or view the format its correct but when I click on pdf it does not show proper format

Print view is correct

See if these threads are helpful:
https://discuss.frappe.io/t/pdf-alignment-problem/34425/13
https://discuss.frappe.io/t/pdf-email-problems-thread/11614

Tried all mentioned solutions nothing worked

if u use custom css try this Letter head alignment problem in pdf - #2 by SudheganShyam