How to fill tables in PDF forms with iTextSharp? -
all
i must fill this pdf form using itextsharp.
i have no problems header fields, don't know how fill table in bottom. can fill first row pdfstamper.acrofields.setfield()
, how can add more rows, if @ possible?
your form form based on acroform technology. means form static. every field in form corresponds widget annotation absolute position defined on page. can not add data on coordinates not predefined, hence can not "add more rows". asking impossible.
take under hood of pdf:
there's array of /fields
, each field defined dictionary combines field entries , entries of single widget annotation. each widget annotation has fixed coordinates on page.
it seems looking dynamic form solution. in case, need form based on xml forms architecture (xfa). form not xfa form.
if in doubt difference between acroform , xfa technology, please download free ebook: the best itext questions on stackoverflow. in book you'll find answer several questions such as:
- what difference between itext, jasperreports , adobe lc?
- generate , design pdf itextsharp or similar
- how can flatten xfa pdf form using itextsharp?
- ...
these , other answers give idea of alternative options.
Comments
Post a Comment