9 cp -l "$1" "$TMPDIR/a/file.pdf";
10 if [ -e "${1}.annot" ]; then
11 cp "$1" "$TMPDIR/b/file.pdf";
12 chmod u+w "$TMPDIR/b/file.pdf"
13 qprint -d "${1}.annot" | patch -d "$TMPDIR/b" --binary;
15 chmod u+w "$TMPDIR/b/file.pdf"
16 cp "$1" "$TMPDIR/b/file.pdf";
22 ## evince really should just use the same document-directory
23 gsettings set org.gnome.Evince document-directory "'file://$TMPDIR/b'";
28 diff -Nura a b ) | qprint -e > "${1}.annot"
29 rm -f "$TMPDIR/a/file.pdf"
30 rm -f "$TMPDIR/b/file.pdf"
31 rmdir "$TMPDIR/a" "$TMPDIR/b" "$TMPDIR"