Hi All,
I am developing a Unitool based printer driver. My printer support Barcode
fonts for which i have to create a PDF files, which i am creating through
Unitool.I am able to create barcode font except Code93 and Code128.
Problem here in Code 93 is, it required to know the no of characters which
is going to print.
Command to create Barcode based on Code93 is,
\x1B\x6B\x48\xn\xData(d1…dn).
here n is number of data which is going to print.
for ex.
1.Open WordPad and select Code93 (This font is from My driver)
write 123456, now Here in this example n should be 6 which is number of
characters.
2.Open WordPad and select Code93 (This font is from My driver)
write 123456789, now Here in this example n should be 9 which is number of
characters.
3.Open WordPad and select Code93 (This font is from My driver)
write ABCDEFGH123456, now Here in this example n should be 14 which is
number of characters.
i can give \x1B\x6B\x48 command in Unitool but \xn should calculate at
run time. I don’t know how to calculate n value, there is any command to
calculate n value at runtime or some callback function.
I tried with CBFiltergraphics() callback function but only Arial or other
Microsoft fonts goes through this callback function for other fonts(which
is created by us) is not calling this function.
Thanks in advance,
Vivek Kumar.