I am trying to do a relatively simple find and replace in a PDF file using Java. I have used the examples given on this site, but I find that when I replace a short piece of text in the middle of a sentence with one that is longer, it does not wrap the line, and instead just pushes it right off the side of the page.
Is there a working example for Java that demonstrates find and replace with text wrapping?
Thanks!