fixing pdf layout