Created
August 26, 2018 21:05
-
-
Save eruffaldi/251640c33143ce2a10906f09498832bb to your computer and use it in GitHub Desktop.
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
import os,sys | |
people = [x.split(" ") for x in """1 10 name""".split("\n")] | |
print (people) | |
for f,n,name in people: | |
f = int(f) | |
n = int(n) | |
print (f,f+n-1,name) | |
os.system("gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=%d -dLastPage=%d -sOutputFile=%s.pdf \"%s\"" % (f,f+n-1,name,sys.argv[1])) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment