0

With the help of the library - itext, I can fill in the specified field by name dynamically.

iText Add values to placeholders in PDF cover page dynamically

The question is: how to do it for a image?

If there are other ways with other libraries, I consider them.

Thank you for answer)

Community
  • 1
  • 1
Roman
  • 61
  • 1
  • 6

1 Answers1

0

Add a button field to the PDF at the location and size you want it to occupy and name it something your code will recognize then just set the normal button appearance to the image you want to display.

See http://developers.itextpdf.com/examples/itext-action-second-edition/chapter-8#325-replaceicon.java

joelgeraci
  • 4,606
  • 1
  • 12
  • 19