increase width of AcroFields(iTextSharp)

后端 未结 1 1501
無奈伤痛
無奈伤痛 2021-01-22 09:38

I\'m using iTextSharp to populate the data to PDF Templates, which is created in OpenOffice. it populating fine, I\'m getting proper PDF, but some where i want to increase the w

相关标签:
1条回答
  • 2021-01-22 09:50

    I can't reproduce the problem. I've made this POC: ChangeFieldSize

    In this example, I take a form with three fields, among others a "Name" and a "Company" field. I first change the size of the "Name" field, the same way you change the field. Then I fill out the "Name" field and the "Company" field. Note that the order in which I perform these operations is important. Maybe you're doing it the other way round.

    The result looks like this: enter image description here

    As you can see, the text isn't truncated the way it is in your screen shot.

    So there are two things you can try:

    • change the order in which you change the field rectangle and fill out the field.
    • upgrade to the most recent version of iTextSharp.

    If that doesn't help, post a SSCCE.

    0 讨论(0)
提交回复
热议问题