I am using an advanced pdf and the spacing of text...
# ask-stanley-ai
s
I am using an advanced pdf and the spacing of text inside of a <td> cell is justified, when I actually want it to be aligned to the left. I have been unable to fix this by adding a style tag of text-align: left - how can I fix this?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** The issue you're experiencing with the text alignment in the
<td>
cell of an advanced PDF in NetSuite is due to the native justification built into the templates. To fix this, you can use the
align
attribute in the
<td>
tag to specify the alignment of the text. However, if this doesn't work, you might be facing a known anomaly with table cell alignment in NetSuite's advanced PDF templates. Here is a link to a blog post that provides a workaround for this issue: [Fix Table Cell Alignment Justification Anomaly](https://blog.prolecto.com/2016/03/18/netsuite-advanced-pdf-templates-how-to-fix-table-cell-alignment-justification-anomaly/) In this post, it's suggested to use a
<div>
tag inside the
<td>
tag and apply the
text-align: left
style to the
<div>
tag. Here's an example:
Copy code
html
<td>
    <div style="text-align: left;">
        Your text here
    </div>
</td>
This should help you align the text to the left inside the
<td>
cell.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828375518
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825418413
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824928701
Please provide your feedback on this answer.