Hi there,
Hope someone can help with this issue, I have a PDF with AcroFields (mostly text fields) which I am populating using PDFSharp.
When I click on the AcroFields in Adobe Acrobat and type, the text is vertically centered in the text field.
However, when I insert text into the field using code:
((PdfSharp.Pdf.AcroForms.PdfTextField)pdfTemplateDocument.AcroForm.Fields["FIRST_NAME"]).Text = "John";
... the text defaults to top left corner of the text box.
I want the text to be vertically centered but I cannot find a setting that controls this.
Strangely, if I open the new PDF I create in Acrobat (with all the text values aligned top left of each AcroField) and click on each one, they align back to the center.
If I tab out, they return back to the left corner but if I type an additional character into the textbox it will stay vertically centered.
Anyone seen anything like this or have any tips to resolve?
Thanks, Wilson.
|