Is it possible to modify PDF Form Field Names?

前端 未结 9 2343
一个人的身影
一个人的身影 2021-02-06 06:05

Here\'s the situation. I have a PDF with automatically generated pdf form field names. The problem is that these names are not very user friendly. They look something like :

9条回答
  •  南笙
    南笙 (楼主)
    2021-02-06 06:26

    Maybe you can consider this:

    • iText is not free, in a propietary software enviroment (2.1.7 it/s last 'free' version).
    • AbcPDF is not free too.

    I have to say that we have AbcPDF license, and we use iText 2.1.7 too in our Java projects... so I can say I agree with previous answers, BUT, it you can't use/buy this products, you can try to replace the name into the pure pdf code (as a plain txt file), following PDF specification:

    Example for a signature field:

    35 0 obj
    <<
    /AP <<
    /N 37 0 R
    >>
    /DA (/TimesRoman 0 Tf 0 g)
    /F 4
    /FT /Sig
    /P 29 0 R
    /Rect [ 86 426 266 501 ]
    /Subtype /Widget
    /T (FIELD_MODIF)
    /Type /Annot
    /V 36 0 R
    >>
    endobj
    

    Where "FIELD_MODIF" it's the place where put the NEW name.

提交回复
热议问题