Announcement

Collapse
No announcement yet.

Form field object names get longer with every form field added

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug Form field object names get longer with every form field added

    If you add form fields and give them a name, Foxit assigns an object name but rather than generate a unique string in the normal way, it seems to just add a repeated sequence of 0123456789 to each new object. The first form fields are named:

    Helveia01
    Helveia012
    Helveia0123
    Helveia01234
    Helveia012345
    Helveia0123456

    etc

    If you add 100+ form fields you end up with object names like this

    Helveia0123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012 345

    (this is 353 characters long)

    If you use a different editor, e.g. the free editor PDFescape, it sensibly names its form fields like this: untitled1, untitled2 etc

    Search "untitled" (14 hits in 1 file)
    E:\Downloads\New_Blank_Document.pdf (14 hits)
    Line 7: <</Subtype/Widget/Rect[84.96 721.44 125.28 735.84]/AP<</N 3 0 R>>/DA(/Helv 8.64 Tf 0 g)/F 4/FT/Tx/MK<<>>/P 1 0 R/T(untitled1)/Q 0/V(

  • #2
    I can't see any reason why you would name the form fields in this way and it causes problems with software that attempts to write to form fields because the ridiculously long names are too long to process.

    Adobe doesn't name its fields in this way as I've created a document with 200 form fields and can write to the last field with no problems. This method of naming the underlying objects is also a waste of space with each new form field added after the example field given above adding 343x2 characters for the name alone

    Is this likely to get fixed because this is a show-stopper for us and it means we will have to switch to Adobe as we need to be able create pdfs with a large number of form fields and use tools to write to them programmatically?

    Comment


    • #3
      Hi Sfax,

      That's weird and it should not behave like that. Could you please kindly let us know the following so we could test per your instructions?
      1) Version info of your Foxit PhantomPDF;
      2) How did you create the form objects? Instructions to replicate the error;
      3) Did it happen to any PDF document or just a certain one?
      4) Your OS info. (E.g. Win7, 32-bit.)

      Comment

      Working...
      X