We have a production issue where the contents of the filled fields in the generated PDF must be 'autofit'(i.e. fields must be resized based on the content of the fields to autofit the content).
As per the code suggested in the below post, we tried setting the FieldLimit as 10 for a text field (assuming that the output PDF will have the text field size changed to accustom 10 characters alone). But its not working as expected. The field size doesnt seem to get changed.
Document pdfDocument = new Document(Server.MapPath("~/input.pdf"));
FormEditor formEditor = new FormEditor(pdfDocument);
Please confirm whether we are missing something in the code above and please suggest us the fix for this issue.
Thanks for helping us in it. As its the prod issue, it would be grateful if you could suggest us the fix ASAP. Thanks.