Improving pdf output