Jan-Erik Soderholm
2017-03-10 13:21:24 UTC
Hi.
Has anyone built the LibGD image library on VMS lately?
https://github.com/libgd/libgd/releases
We use a lot of Zebra label printers. They by default support
printing text in 0, 90, 180 and 270 degree rotation. But now
we have got a request for a label that has text that is just
slightly rotated. And it is text that in some parts will change
from label to label (serial numbers and so on), so the standard
label printer command language is not enough here.
My though is to create graphical "images" of the labels on the
fly and print them. There are Zebra commands to to that. You send
the "image" as HEX or Base64 encoded bitmapped image data.
Due to the variable data, we can not create the label images
upfront and we have just a fraction of a second after we know
the data until the label should be available for the operator.
Environment is VMS (of course) and application code in Cobol
but there is no issue to call C-routines, of course.
All GD examples I have read ends up with a file in some format.
We do not need any file, but I need to get the "image" in memory
and encode it for the printer.
For the actual text printing, it seems as the GD function
gdImageStringFT() would fit the bill since it has a "rotation"
paramater.
Anyway, I'd just liked to hear if anyone have successfully
build and used this libray on VMS. Or any pointer to similar
libraries that seems to solve this request.
Regards, Jan-Erik.
Has anyone built the LibGD image library on VMS lately?
https://github.com/libgd/libgd/releases
We use a lot of Zebra label printers. They by default support
printing text in 0, 90, 180 and 270 degree rotation. But now
we have got a request for a label that has text that is just
slightly rotated. And it is text that in some parts will change
from label to label (serial numbers and so on), so the standard
label printer command language is not enough here.
My though is to create graphical "images" of the labels on the
fly and print them. There are Zebra commands to to that. You send
the "image" as HEX or Base64 encoded bitmapped image data.
Due to the variable data, we can not create the label images
upfront and we have just a fraction of a second after we know
the data until the label should be available for the operator.
Environment is VMS (of course) and application code in Cobol
but there is no issue to call C-routines, of course.
All GD examples I have read ends up with a file in some format.
We do not need any file, but I need to get the "image" in memory
and encode it for the printer.
For the actual text printing, it seems as the GD function
gdImageStringFT() would fit the bill since it has a "rotation"
paramater.
Anyway, I'd just liked to hear if anyone have successfully
build and used this libray on VMS. Or any pointer to similar
libraries that seems to solve this request.
Regards, Jan-Erik.