New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

Bug in com.idautomation.linear.BarCode.setCheckCharacter/setCheckCharacterInText with setShowText

Hi, I'm trying to do something fairly simple, perhaps someone here could help me out.

I just want the human-readable text to NOT show a calculated check digit, for now, let's just talk about UPC-A.

I assumed this could be done with either setCheckCharacter(false) or setCheckCharacterInText(false), but neither seems to have any effect. Setting both to false also has no effect.
As long as setShowText(true) is called before painting the barcode, a check digit is calculated and shown when the data given is either 11 digits (needs check digit to be valid symbology, ok, I just don't want to see it in the human-readable part) or 12 digits (it overrides my given 12th digit with a correct check digit in the human-readable portion).

I have a code example detailing the issue if you would like to see it.

My LinearBarCode.jar manifest in case I need an upgrade -
Manifest-Version: 1.0
Specification-Title: Java Barcode Package
Created-By: 1.4.2_07 (Sun Microsystems Inc.)
Implementation-Title: Java Barcode Package
Specification-Vendor: IDAutomation.com, Inc.
Specification-Version: 4.10
java-Bean: True
Implementation-Version: 4.10
Name: com/idautomation/aztec/BarCode.class
Implementation-Vendor: IDAutomation.com, Inc.

Operating System: Windows 10

Application: Direct Use of LinearBarCode.jar

01-04-19     5.9 year(s) ago    

  Report Abuse

 

Brant

Best Answer

What you are trying to do in the Java Barcode Package is possible with Code-39 or ITF, but not UPC-A. By design, UPC-A requires a check digit and it must be displayed according to GS1. However, for Code-39 or ITF, you may choose to turn off the check digit display and still have it encoded in the barcode.

Posted 5.9 year(s) ago

(1)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook