We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text Fields in PDF Form filled with Aspose.Pdf

Hi!
When filing fields in a PDF form using Aspose.Pdf 6.4 it demonstrate very strange behavior.
I need to fill many text fields with various text values. I have established to text fields font "Arial" in this form.
If I fill a field with the plain text only, at viewing in this field font "Times" is displayed.
If the same text contains a symbol CrLf, at viewing in this field the necessary font, but it displayed with the increased intervals.

Moreover, if the text field has no borders, the exception "Key path 'N' doesn't correspond appearance dictionary structure" stands out.

Please help me as soon as possible!
Thank you!

Test PDF Form and result picture see in attachment, below the code in VB.NET:

For Each formField As Field In pdfDocument.Form

Select Case formField.PartialName
Case "Text1"
formField.Value = "ПОЛУБОТИНКИ МУЖСКИЕ, ВЗРОСЛЫЕ " & _
"НАТ.КОЖА, ПОДОШВА - РЕЗИНА, ПОЛИМЕР, СО" & _
"СТЕЛЬКОЙ ДЛИНОЙ 25,7-29,7 СМ, НЕ ЗАКРЫВАЮТ" & _
" ЛОДЫЖКУ, НЕ ДЛЯ ВОЕННОГО ОБМУНДИРОВАНИЯ" & _
" ПОЛУБОТИНКИ МУЖСКИЕ Производитель ЗАО" & _
"РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ" & _
" СМ.ДОПОЛНЕНИЕ()"

Case "Text2"
formField.Value = "ПОЛУБОТИНКИ МУЖСКИЕ, ВЗРОСЛЫЕ, " & _
"НАТ.КОЖА, ПОДОШВА - РЕЗИНА, ПОЛИМЕР, СО" & _
"СТЕЛЬКОЙ ДЛИНОЙ 25,7 СМ, НЕ ЗАКРЫВАЮТ" & vbCrLf & _
" ЛОДЫЖКУ, НЕ ДЛЯ ВОЕННОГО ОБМУНДИРОВАНИЯ" & _
" ПОЛУБОТИНКИ МУЖСКИЕ Производитель ЗАО" & _
"РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ" & _
" СМ.ДОПОЛНЕНИЕ()"

Case "TextError" 'Field without borders!
formField.Value = "ПОЛУБОТИНКИ МУЖСКИЕ, ВЗРОСЛЫЕ, " & _
"НАТ.КОЖА, ПОДОШВА - РЕЗИНА, ПОЛИМЕР, СО" & _
"СТЕЛЬКОЙ ДЛИНОЙ 25,7-29,7 СМ, НЕ ЗАКРЫВАЮТ" & _
" ЛОДЫЖКУ, НЕ ДЛЯ ВОЕННОГО ОБМУНДИРОВАНИЯ" & _
" ПОЛУБОТИНКИ МУЖСКИЕ Производитель ЗАО" & _
"РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ РИНГЕР""ЗАО ""РАЛЬФ" & _
" СМ.ДОПОЛНЕНИЕ()"

End Select

formField.ReadOnly = True

Next formField

Hi Borisk,

Thanks for using our products.

I have tested the scenario and I am able to notice the same problem. For the sake of correction, I have logged this problem as PDFNEWNET-32196 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction.

We apologize for your inconvenience.

Thanks & Regards,

The issues you have found earlier (filed as PDFNEWNET-32196) have been fixed in this update.


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