Hello.It is not apparent how to save a PDF after I highlight some text in it. For example:
PDDocument doc = PDDocument.load("source.pdf");
PDFHighlighter hl = new PDFHighlighter();
java.io.FileWriter xml = new java.io.FileWriter("tmp.xml");
hl.generateXMLHighlight(doc, "450", xml);
How do I now save source.pdf (or a copy of it, if overwriting is not
possible) with the text highlighted?

