Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a Makefile to be used with cpdf pdfnup and pdftoppm
- SRC = # name without extension
- PAGES = # number of pages
- all: title 2toend doublepages pdftopng
- @echo "Done!"
- title:
- cpdf $(SRC).pdf 1-1 -recrypt -o $(SRC)-Title.pdf
- 2toend:
- cpdf $(SRC).pdf 2-$(PAGES) -recrypt -o $(SRC)-2-$(PAGES).pdf
- doublepages:
- pdfnup $(SRC)-2-$(PAGES).pdf
- pdftopng:
- pdftoppm -png $(SRC)-2-$(PAGES)-nup.pdf $(SRC)
- clean:
- rm $(SRC)-2-$(PAGES)-nup.pdf $(SRC)-2-$(PAGES).pdf $(SRC)-Title.pdf *.png
- rebuild: clean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement