IText edit or remove the layer on PDF

As it turned out in comments, the layers in question are what iText indeed calls layers but what actually in PDF lingo is called optional content groups. There indeed is a utility class for removing such layers in the iText Xtra package (not the extrajars, but itext-xtra.jar): com.itextpdf.text.pdf.ocg.OCGRemover which makes use of the class OCGParser … Read more