download pdf with right styles