I have been looking through the pymupdf documentation, and while there is a lot there and I can see how to identify annotations (Annot class), I can't work out how to put an annotation that I have found in one document from that one into another. Has anyone tried this before?
I am trying to merge markups generated in BlueBeam at different times into one document. I don't need to move the annotations around, just to transfer them. If I can assign them to different layers or edit the "name" attribute, that would also be good, but I can probably work out how to do that after they are transferred.
JorjMcKie has answered this over on the PyMuPDF repository, Issue 1310. There is no direct way to merge markups in the way that I would like to do it, but Jorj has demonstrated a way that involves extracting the source data and placing it in the new file (details copied from his response below).