CSIT-836: PDF format: Improvements in pdf layout