Enhancing the beauty and alignment of PDF output in code