There is a similar question, but the answers fail to solve the problem of "flattening" annotations, i.e. turning them from annotations into actual content.
One way is to print them to PDF, but that can result in a loss of quality, especially of scanned images in the PDF. Is there a way to achieve this, preferably using a Linux command line tool like pdftk that can preserve everything in the PDF as-is and only adds the annotations as content?
