Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
packning-ombyggnad
Commits
dcda910b
Commit
dcda910b
authored
Jul 18, 2018
by
Anders Blomdell
Browse files
Labels for 4 sides, cutting marks
parent
c01177a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pallet-label
View file @
dcda910b
...
...
@@ -28,7 +28,7 @@ def generate(start, end, name):
result
+=
'ISOLatin1Encoding /Times-Roman-ISO /Times-Roman NE
\n
'
up
=
False
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
([
'72 25.4 div dup scale
\n
'
,
''
,
''
,
''
]),
itertools
.
cycle
([
''
,
''
,
''
,
'showpage
\n
'
])):
...
...
@@ -43,6 +43,8 @@ def generate(start, end, name):
result
+=
'0 %d moveto
\n
'
%
offset
result
+=
'10 50 rmoveto
\n
'
result
+=
'(%s) show
\n
'
%
name
result
+=
'0 setlinewidth
\n
'
result
+=
'0 %d moveto 210 %d lineto stroke
\n
'
%
(
offset
,
offset
)
result
+=
showpage
pass
if
showpage
==
''
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment