The extended features of a pdf file, like filling out the fields or a dropdown field do not work, after adding a new page to a pdf document. The file is opened in append mode to preserve Reader enabling:
PdfDocument pdfDoc =
new PdfDocument(pdfReader, new PdfWriter(outputStream), new StampingProperties().useAppendMode());
Filling out the form fields does not break the signature, but after adding a new page to attach images to the file, the extended features are no longer available.
A new page is added with:
PdfPage page = pdfDoc.getPage(1);
pdfDoc.addNewPage(pdfDoc.getNumberOfPages() + 1, new PageSize(page.getPageSize()));
Is it possible to add pages and attach images to the file without breaking the signature? The option removing the usage right is not applicable, since we want to be able to fill out and save the form.