Commit dcda910b authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Labels for 4 sides, cutting marks

parent c01177a3
...@@ -28,7 +28,7 @@ def generate(start, end, name): ...@@ -28,7 +28,7 @@ def generate(start, end, name):
result += 'ISOLatin1Encoding /Times-Roman-ISO /Times-Roman NE\n' result += 'ISOLatin1Encoding /Times-Roman-ISO /Times-Roman NE\n'
up = False up = False
for label, offset, header, showpage in zip( for label, offset, header, showpage in zip(
range(start, end + 1), itertools.chain(*([ [i, i, i, i] for i in range(start, end + 1)])),
itertools.cycle([ 297/4 * i for i in range(3, -1, -1)]), itertools.cycle([ 297/4 * i for i in range(3, -1, -1)]),
itertools.cycle(['72 25.4 div dup scale\n', '', '', '']), itertools.cycle(['72 25.4 div dup scale\n', '', '', '']),
itertools.cycle(['', '', '', 'showpage\n'])): itertools.cycle(['', '', '', 'showpage\n'])):
...@@ -43,6 +43,8 @@ def generate(start, end, name): ...@@ -43,6 +43,8 @@ def generate(start, end, name):
result += '0 %d moveto\n' % offset result += '0 %d moveto\n' % offset
result += '10 50 rmoveto\n' result += '10 50 rmoveto\n'
result += '(%s) show\n' % name result += '(%s) show\n' % name
result += '0 setlinewidth\n'
result += '0 %d moveto 210 %d lineto stroke\n' % (offset, offset)
result += showpage result += showpage
pass pass
if showpage == '': if showpage == '':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment