Text Fields in PDF Form filled with Aspose.Pdf

Last post 01-16-2012, 4:45 AM by aspose.notifier. 2 replies.
Sort Posts: Previous Next
  •  11-25-2011, 5:56 AM 344691

    Text Fields in PDF Form filled with Aspose.Pdf .NET

    Attachment: Present (inaccessible)
    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

    Filed under: PDF;PDF for .Net;PDF Forms
     
  •  11-25-2011, 10:06 AM 344759 in reply to 344691

    Re: Text Fields in PDF Form filled with Aspose.Pdf

    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,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  01-16-2012, 4:45 AM 355361 in reply to 344691

    Re: Text Fields in PDF Form filled with Aspose.Pdf

    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.
     
View as RSS news feed in XML