Created
November 15, 2024 01:54
-
-
Save aspiwack/4de5ffbae45412ecf776f9455f9b979f to your computer and use it in GitHub Desktop.
Slicing a pdf while retaining the hyperlinks with pdftk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAIN_END_PAGE = 25 | |
%-submission.pdf: %.pdf | |
pdftk $< cat 1-$(MAIN_END_PAGE) output temp.pdf | |
pdftk $< dump_data_utf8 | pdftk temp.pdf update_info_utf8 - output $@ | |
rm -f temp.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment