ShelvAR/ShelvARApi — pull request #27 by BearInATie (2013-03-25 01:40:09+00:00)
Title: Tagmaker Base

First- sorry for all the additions, ~1,500 are from FPDPF though

Here's the test URL: http://devapi.shelvar.com/tagmaker/9003/%5B%22NX543%20.c38%202000%22%2C%22NX543%20.c38%202000%22%5D.json

Done So far:
-pdfPrint.php takes in a tag type (ie 9003) and a JSON array of call
numbers
-It loads the CSV of tag information, and stores the tag type's style in
an array
-If in English units (assumed to be inches) converts them to millimeters
-It then converts the call number (for right now only the first one) to
a binary string (since that's what we're most likely doing anyways) and
then prints the string to the PDF
-The maker also prints the call number centered below the actual tag
itself
-The PDF is then returned by FPDF as "output.pdf" for download

To Do:
-Actually support multiple call numbers
-Space & size the tags based on the tag measurements
-Error handling

Questions
-When resizing the individual tags, should I change the number of
columns the tag has, or the size of the individual blocks in the row?