Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # This is a Makefile to be used with cpdf pdfnup and pdftoppm
  2.  
  3. SRC = # name without extension
  4. PAGES = # number of pages
  5.  
  6. all: title 2toend doublepages pdftopng
  7. @echo "Done!"
  8.  
  9. title:
  10. cpdf $(SRC).pdf 1-1 -recrypt -o $(SRC)-Title.pdf
  11.  
  12. 2toend:
  13. cpdf $(SRC).pdf 2-$(PAGES) -recrypt -o $(SRC)-2-$(PAGES).pdf
  14.  
  15. doublepages:
  16. pdfnup $(SRC)-2-$(PAGES).pdf
  17.  
  18. pdftopng:
  19. pdftoppm -png $(SRC)-2-$(PAGES)-nup.pdf $(SRC)
  20.  
  21. clean:
  22. rm $(SRC)-2-$(PAGES)-nup.pdf $(SRC)-2-$(PAGES).pdf $(SRC)-Title.pdf *.png
  23.  
  24. rebuild: clean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement