clean up PDF layout