AcroForm values missing after flattening

前端 未结 1 1354
夕颜
夕颜 2020-12-07 03:58

I\'m using LibreOffice 4.1.3.2 to produce a fillable PDF:

  1. Created a Writer document
  2. Set some text and test fields
  3. Exported to PDF
相关标签:
1条回答
  • 2020-12-07 04:39

    When creating a form using Open Office, Open Office sets a flag telling iText not to create appearances. If you look at the FillDataSheet example, you'll see that we override this with the following line:

    fields.setGenerateAppearances(true);
    

    In your specific C# snippet, that would be:

    f.GenerateAppearances = true;
    

    It's important to set this value before setting the fields or the appearances won't be created.

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