DavisDirectPrepress Posted August 27, 2013 Share Posted August 27, 2013 (edited) I'm having a difficulty with our IMB barcode. I finally got resolved the issue with using the font, but now we're having another issue with the length. The Post Office requires the barcode to be at a certain length and height. By setting the point size at 10 we meet the height requirement, but now we have a short barcode. Is there a way to stretch it out to meet our length requirement? I've tried using copyfitline and tracking, but those don't seem to work in conjunction with the makeonecodebarcode. This is the code we are using to generate our barcode: var imb = Field("ONECODE"); return MakeOneCodeBarcode(imb.substr(0,20),imb.substr(20) ,10); Edited August 27, 2013 by DavisDirectPrepress misspelling Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 27, 2013 Share Posted August 27, 2013 Try this: var imb = Field("ONECODE"); return '<magnify type="setwidth" factor="150">' + MakeOneCodeBarcode(imb.substr(0,20), imb.substr(20), 10);You can change the value in the <magnify> tag to get the results you want. Or: var imb = Field("ONECODE"); return '<f name="IDAutomation4State"><z newsize="10"><setwidth newsize="15">' + new OneCodeBarcode().Encode(imb.substr(0,20), imb.substr(20));Here you can change the value in the <setwidth> tag relative to the pointsize (the <z> tag) to get the results you want. Quote Link to comment Share on other sites More sharing options...
DavisDirectPrepress Posted August 28, 2013 Author Share Posted August 28, 2013 That first code worked perfectly, Dan. Thank you so much for your help! I knew it was possible, I just don't have enough javascript knowhow to work it out. Quote Link to comment Share on other sites More sharing options...
esmith Posted August 29, 2013 Share Posted August 29, 2013 We've always printed the IMB barcodes at 11 points without any additional modifications and that gave us the correct specs for the post office. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.