I have a code to replace a placeholder in a word and then export the word to PDF. We found that the exported PDF has alignment problems. Please see the image below
and here is my code
if (string.IsNullOrEmpty(propData.Value.Trim()))
document.ReplaceInLine(propInf, string.Empty, false, true);
else
document.ReplaceInLine(propInf, propData.Value.Trim(), false, true);
on the other hand, i simple the process, by open the word and then export. the exported pdf also have the alignment issue. please see the image below
Not sure is there any modification on the word or code to make it look better. Please help.