Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove ugly “RightsLink” images in PDFs from the new ACM Digital Library.
@brianhempel

This comment has been minimized.

Copy link
Owner Author

@brianhempel 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

This comment has been minimized.

Copy link
Owner Author

@brianhempel brianhempel commented Jan 22, 2020

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