1. Cecilia Jiménez Bedoya
  2. PowerBuilder
  3. Tuesday, 18 September 2018 10:06 AM UTC

Hello,

I need to create bar codes in EAN 128. I need the algorithm and the font that interprets it.
I have been testing with several functions that I have found on the internet and with many fonts of bar code (code 128.ttf) but I can not get any one to put the correct bar code (replacing all the characters by bars) and then be readable by a barcode reader. The start and end characters of the Code 128 coding are not replaced by the font.

I already had a function and a font but it is not embeddable and I can not use it to generate PDF with the NativePDF.

Can someone help me? Thank you very much

 

 

Attachments (1)
Brett Weaver Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2024 19:17 PM UTC
  2. PowerBuilder
  3. # 1

Just a comment:

 

I didn't have any trouble using a bar code font on documents I was creating but you have to make sure that the check-digit is correctly calculated for all possible values. The functions included above look great!

Its simple enough to call a function in the datawindow column which passes the variable data back and returns the data with a check digit affixed.

 

 

 

 

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2024 16:30 PM UTC
  2. PowerBuilder
  3. # 2

Marco makes an excellent observation regarding the height of a Code 128 barcode, because there are minimum height and bar/space width specs that scanner manufacturers have to meet. For example, Code 128 requires:

  • Height >= 15% of encoded length, and no shorter than 6.5mm (0.256in).
  • The width of the thinnest bar or space (the barcode industry calls this value "X"): 0.19mm =< X >= 1.27mm

If the barcodes you produce fall outside of these specifications, you run the risk of the barcode being un-scannable.

You can find more information about Code 128 and other barcodes at:

    https://www.tec-it.com/en/support/knowbase/barcode-overview/linear/Default.aspx
 
   https://www.barcode.graphics/education-gs1-128-barcode/
 
   https://www.gs1.org/standards

HTH. Best regards, John

Comment
There are no comments made yet.
Marco Armbruster Accepted Answer Pending Moderation
  1. Friday, 18 October 2024 10:07 AM UTC
  2. PowerBuilder
  3. # 3

We found this code years ago.

It works fine.

Just add the funktion as attached.  

 

The font you can download here (for free) or use the one attached one:

https://www.zoll.de/SharedDocs/Downloads/DE/Links-fuer-Inhaltseiten/Fachthemen/Zoelle/Atlas/code_128.html?__blob=publicationFilehttp%3A%2F%2Fwww.zoll.de%2Fe0_downloads%2Fedifact_release_8_0_8_1%2Findex.html

In the datawindow you add a computed column like this:

barcode_128( 'some data' )

choose the font "CODE-128" and set the size at least to 24

 

Attachments (2)
Comment
  1. mike S
  2. Saturday, 19 October 2024 16:22 PM UTC
your barcode_128 function calls: barcode_128_transform which is not included



you can also put your EAN 128 generator submission in code exchange: https://community.appeon.com/index.php/codexchange/share-code
  1. Helpful
  1. Marco Armbruster
  2. Tuesday, 22 October 2024 15:20 PM UTC
Sorry. You are right.

I added the missing function to the ZIP-file
  1. Helpful 1
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 18 September 2018 13:42 PM UTC
  2. PowerBuilder
  3. # 4
Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Tuesday, 18 September 2018 12:50 PM UTC
  2. PowerBuilder
  3. # 5

We've been using ID Automation Univeral Barcode Font with a Windows DLL to encode the strings. Has worked fine in PDFs as far as I know.

ID Automation Universal Barcode Font

It's not horribly expensive, and the Font files are free to distribute.

You create a text object, or column object, assign it to the proper font, call the DLL function to generate the encoded string, place the string in the field, or set the object text.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.