When using Advanced PDFs for your transactions/records, some users might encounter the values inside the columns being justified as seen below:
This is caused by the printing engine which is used when creating the PDF files. It adds a <p> element on all <th> and <td> elements which is set to justify by default.
With this, a lot of users find this hard to read because of its alignment. In this article, I will guide you on how to fix this by editing the Source Code.
Go to your Advanced PDF Template:
1.) Navigate to your Advanced PDF Template
2.) Find the code where the alignment justification is occurring:
3.) Add this code (<p style=”text-align: left;”> </p>) within the <th> element as seen below:
<th align="center" colspan="3" style="padding: 10px 6px;"><p style="text-align: left;">NSC Test Column Field</p></th>
Note:You can use the following text-align properties (Center, Left, Right, and Justify). You can also use this code to your <td> elements.
Results:
Once done, the text alignment should now be set according to the text-align property you’ve set as seen below:
Want to be able to set this globally? You can learn more on SuiteAnswers 70371: Advanced PDF/HTML Table Column Alignment Is Justified even Alignment was modified



