Super Updated Version, Part 2
In my early attempts, which I unfortunately did not document, I just had the code insert the word “Exhibit” plus a counter, all at a hard-coded font and size. It took me a while to figure out how to make iText7 do that. Of course, it would be far better to give users the choice…