Skip to content

Instantly share code, notes, and snippets.

@brianhempel
Last active April 23, 2021 20:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianhempel/d12077e6f090c6196ae184dc34f3ade4 to your computer and use it in GitHub Desktop.
Save brianhempel/d12077e6f090c6196ae184dc34f3ade4 to your computer and use it in GitHub Desktop.
Remove ugly “RightsLink” images in PDFs from the new ACM Digital Library.
@brianhempel
Copy link
Author

brianhempel commented Jan 22, 2020

Make it executable and put it in your path, then:

$ remove_rightslink_images *.pdf

The PDFs are modified in place. (If you don't like that, change line 30 to write to some other file path.)

@brianhempel
Copy link
Author

hexapdf seems to croak on some older PDFs. ah well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment