How do I correct a formatting issue when generating PDF's