FillField with large text problem


I have a multi-line fillable field on a PDF form. When i go to fill that field in via code the text spacing and alignment get all out of whack. If i take the same text and manually fill it into the field on the PDF it looks the way i want it to.

Below is the code i used to generate the aspose PDF. The other files one is manual the other is via aspose. Any thoughts would be appreciated.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim License As New License

'Make sure that the license file’s direcotry and name is right.

'First an input and output pdf file should be assigned and
‘make sure that the files’ direcotry and name is right.
Dim form As Form = New Form(“C:\temp\asptest.pdf”, “C:\temp\asptestASP.pdf”)

'set values
form.FillField(“ImportantMessage”, Me.rtbImpMess.Text, True)

'flatten remaining fields

'Save the changes.

'open document
Dim document As New Document(“C:\temp\asptestASP.pdf”)

'encrypt PDF
document.Encrypt("", “”, Permissions.PrintDocument, CryptoAlgorithm.RC4x128)
'save updated PDF
End Sub

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template file and sample code.

I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-33503. You will be notified via this forum thread regarding any updates against your issue.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-33503) have been fixed in Aspose.Pdf for .NET 7.0.0.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.