Browse Source

adding rules to the Makefile for making the webversion and coverimage

master
mb 2 years ago
parent
commit
4aa9ee3ad5
  1. 24
      command-line/Makefile

24
command-line/Makefile

@ -27,6 +27,30 @@ interior: multi
# take cover out of the PDF (only select pages 3-338 + 2 extra white pages)
@pdftk Unfolded-with-Multi.pdf cat 3-342 output Unfolded-interior.pdf
webversion:
# ---
# multistamp Multi Remix on top of the pdf
@pdfunite multi-remix/multi-remix-web.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-web.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-web-stamp.pdf
@pdftk Unfolded.pdf multistamp multi-remix/multi-remix-web-stamp.pdf output Unfolded-with-Multi.pdf
# ---
# taking out the extra 2 empty pages
@pdftk Unfolded-with-Multi.pdf cat 1-340 343-344 output Unfolded-web.pdf
# ---
# resizing the web PDF
@sh resample.sh Unfolded-web.pdf 300
@mv Unfolded-web-resampled.pdf Unfolded-web.pdf
coverimage:
# ---
# taking only the cover page from the PDF
@pdftk Unfolded-web.pdf cat 1 output Unfolded-cover-web.pdf
# ---
# turning the cover into CMYK
@sh rgb2cmyk.sh Unfolded-cover-web.pdf overprint
# ---
# saving the cover as PNG file
@pdftoppm Unfolded-cover-web-CMYK.pdf -png Unfolded-cover-web-CMYK
upload:
# ---
# upload Paged.js preview to the Varia server

Loading…
Cancel
Save