I am having a weird issue where text that is in a header that’s centered comes out left justified after saving to pdf.
I will say that during the process of saving the PDF I am also adding a watermark to the word document.
So it’s possible the problem lies in the adding of the watermark. Though it looks fine as a word document with the watermark added. It’s only after saving to pdf that the header gets messed up.
Below is some of the code I use to add the watermark and save as pdf.
Dim watermarkDoc As Document = ApplyWatermark(watermarkText, theTempPath & OriginalFilename)
watermarkDoc.Save(theTempPath & OriginalFilename)
Dim pdfDoc As Document = New Document(theTempPath & OriginalFilename)
pdfDoc.Save(destinationPath & NewFilename)
The ApplyWatermark routine is from here:
Adding watermark adds blank line to header
Thank you for your time.