FillField with large text problem

Hi,

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.
Thanks,
R

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.
License.SetLicense(“C:\AsposeLicense\Aspose.Total.lic”)

'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
form.FlattenAllFields()

'Save the changes.
form.Save()

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

'encrypt PDF
document.Encrypt("", “”, Permissions.PrintDocument, CryptoAlgorithm.RC4x128)
'save updated PDF
document.Save(“C:\temp\asptestASP.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.