Merge annotations with the PDF

I would like to merge the annotations made on a PDF (texts, frames, lines, shapes,...) with the original PDF so that we can't move the annotations at the end. Basically overwrite all the layers of the PDF. Is this possible in the saving options? Is there a flatten function?