PDFBOX-5769: refactor duplicated code in interactive.annotation.layout and interactive.form, by Axel Howind