Transfer Annotations to Another PDF

As discussed in [1] and [2], if a PDF is missing, is there a straightforward way to transfer annotations of the missing PDF to another PDF? Given an option, one can just click "Find Available PDF" and then perform a "Restore Annotations".

[1]: https://forums.zotero.org/discussion/111880/can-i-restore-annotations-from-notes
[2]: https://forums.zotero.org/discussion/101445/quickly-download-missing-pdfs
  • If a PDF is missing, you can just use Locate in the file-not-found dialog to automatically copy the new PDF to the correct location and then delete the new PDF.

    There's not going to be any other way to do that, because we can't assume that some other file downloaded via Find Available PDF or any other way is actually the same exact file with the same pages that will line up with the existing annotations. But you can always relocate a missing file.
  • That is very helpful, thank you!
  • I came up with a script to replace missing PDFs. Posting it here in case people find it helpful.

    https://gist.github.com/nikhilweee/fdf7b471a31c2f1c2b9527c51d734d86
Sign In or Register to comment.