When filling in values of PDF form text fields the vertical alignment is wrong. It appears as if the alignment is getting set to bottom even though my code doesn’t change it. I don’t have this problem using Adobe Acrobat filling out the PDF.
My Sample Code is below and the sample file I used is attached.
Document pdfDocument = new Document(“input.pdf”);
// Get a field
TextBoxField textBoxField = pdfDocument.Form[“textbox1”] as TextBoxField;
TextBoxField codeField = pdfDocument.Form[“CODE Field”] as TextBoxField;
// Modify field value
textBoxField.Value = “S”;
codeField.Value = “S”;
pdfDocument.Save(<span style="color:#a31515;">"output.pdf"</span>);</pre><br>
Hi Daniel,
Thanks for using our APIs.
I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38606. We will investigate this issue in details and will keep you updated on the status of a correction.
We apologize for any inconvenience caused.
Any updates on this issue? We currently use this functionality extensively in our documents and this is a dealbreaker when evaluating the product.
Hi Daniel,
Thanks for your patience.
I am afraid the earlier reported issue is not yet resolved and is still pending for review as the team has been busy fixing other previously reported high priority issues. However your concerns have been shared with product team and as soon as we have some definite updates regarding its resolution, we will let you know.