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