Skip to content

Instantly share code, notes, and snippets.

View sellth's full-sized avatar

Thomas sellth

  • Berlin Institute of Health @ Charité
  • Berlin
View GitHub Profile
@sellth
sellth / remove-annotations.sh
Created August 17, 2017 15:20 — forked from stefanschmidt/remove-annotations.sh
Remove all annotations from a PDF document
pdftk original.pdf output uncompressed.pdf uncompress
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf
pdftk stripped.pdf output final.pdf compress