sourcebots / marker-to-pdf

Script to convert a directory of markers to pdfs
MIT License
0 stars 1 forks source link

marker-to-pdf

Overview of the files

This repo contains:

TagName TagCode TagSize << Header, ignored.
NorthPillar 4 25 << The first tag in the document, 25cm x 25cm (standard wall marker size), representing a 4.
EastPillar 8 25 << The second tag in the document, 25cm x 25cm, representing an 8.
PoisonToken 13 10 << The third tag in the document, 10cm x 10cm (standard token size), representing a 13.
BrToken Yes 9 << This tag would be the fourth tag, 9cm x 9cm, but has a malformed number code, so is omitted.
0 5 << The fourth tag in the document, 5cm x 5cm (very small), representing a 0. This tag will be unnamed.

If the tag numbers are input manually on the command line, they are required in the form of a comma-separated list, but the individual elements can be single numbers or ranges of numbers of the form a-b, which print all of the tags representing numbers from a to b, inclusive, in order.

1,2,3,4,5       # Would produce tags representing 1, 2, 3, 4 and 5
1, 2, 3, 4, 5   # This would do likewise
1-5             # As would this
1,1-3,5,8,1-10  # Would print tags 1, 1, 2, 3, 5, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10. In that order.

Manually input tag numbers do not give opportunity for printing tag names.

TagResizer.py gives two forms of output: a series of PNG images of the printed pages, and a PDF document with them all collated for printing. (TODO: clarify this further?) The commandline interface gives options for the format of printing, permitting manual customisation or use of presets for standard marker formats.

The available presets are:

In CUSTOM format creation, you can select: