How do I enumerate all the fields in a PDF file in ITextSharp

后端 未结 4 446
刺人心
刺人心 2020-12-01 21:52

Let\'s say I\'ve loaded a PDF file using iTextSharp:

PdfStamper p = GetDocument();
AcroFields af = ps.AcroFields;

How do I get a list of al

4条回答
  •  醉话见心
    2020-12-01 22:14

    AcroFields af = ps.AcroFields;
    
            foreach (var field in af.Fields)
            {
                Console.WriteLine("{0}, {1}",
                    field.Key,
                    field.Value);
            }
    

提交回复
热议问题