I'm trying to remove all embedded files from PDF using PDFBox, inside a Java application. I'm using PDFBox with Java. Not command line tools.
There are many examples how to read embedded files using PDFBox. But it wasn't that simple to modify the code to remove the files.
Any working solution for that?
Correct answer from Tilman given in a comment (but an answer is more visible thus the copy):