Search code examples
c#pdflib

Know how to detect form fields name and type but can not set value?


I am trying to set the values of a few form fields in a (template) pdf which is created by the designer.

Already found out to detect the name and type of the fields. So I know which form fields there are:

String res = pdflib.pcos_get_string(indoc, "fields[" + f + "]/fullname");
String fieldtype = pdflib.pcos_get_string(indoc, "fields[" + f + "]/FT");

Is it possible to set a value with pdflib? I can not find any good (and simple) working example.


Solution

  • with the PDFlib pCOS Interface you can only read the information but not change it. PDFlib does not provide any functionality for manipulating existing PDF documents.