Swiftbarcode      to create your own barcodes
  Home | Examples | Parameters | Products | Contact us | Site map | FAQ Quick links :  Order
  Barcode examples | JavaScript | JSP/Servlet

Examples version v1_10

Please find below an extensive list of barcode examples for version v1_10. For further examples please contact us.

For all the JSP example code only the actual parameter settings are listed. For the full JSP/Servlet code please check the JSP/Servlet example page.


Description Example Code
EAN-13: example 1
Displaying barcode value and supplying the check digit. The barcode width is set to 2 displaying the barcode twice as wide as the smallest possible width.
EAN13 barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="5060033952504">
<param name="symbology" value="EAN13">
<param name="bar_code_height" value="80">
<param name="bar_code_width" value="2">
<param name="check_digit_supplied" value="Y">
<param name="font_size" value="18">
<param name="text_display" value="Y">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","5060033952504");
mybarcode.setParam("symbology","EAN13");
mybarcode.setParam("bar_code_height","80");
mybarcode.setParam("bar_code_width","2");
mybarcode.setParam("check_digit_supplied","Y");
mybarcode.setParam("font_size","18");
mybarcode.setParam("text_display","Y");
EAN-13: example 2
Displaying barcode value and not supplying the check digit. The barcode width is set to 1 displaying the barcode as the smallest possible width. The barcode is rotated to the left by setting the orientation value to 1. In addition the font type is set to Arial.
EAN13 barcode example 2 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="506000516001">
<param name="symbology" value="EAN13">
<param name="1bar_code_height" value="40">
<param name="check_digit_supplied" value="N">
<param name="font_size" value="12">
<param name="orientation" value="1">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","506000516001");
mybarcode.setParam("symbology","EAN13");
mybarcode.setParam("1bar_code_height","40");
mybarcode.setParam("check_digit_supplied","N");
mybarcode.setParam("font_size","12");
mybarcode.setParam("orientation","1");
UPC-A: example 1
Displaying barcode value and not supplying the check digit. The barcode width is set to 1 displaying the minimal possible width and the barcode value is displayed.
UPC-A barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="01234567890">
<param name="symbology" value="UPCA">
<param name="bar_code_height" value="40">
<param name="bar_code_width" value="1">
<param name="check_digit_supplied" value="N">
<param name="font_size" value="12">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","01234567890");
mybarcode.setParam("symbology","UPCA");
mybarcode.setParam("bar_code_height","40");
mybarcode.setParam("bar_code_width","1");
mybarcode.setParam("check_digit_supplied","N");
mybarcode.setParam("font_size","12");
UPC-A: example 2
Not displaying barcode value and not supplying the check digit. The barcode width is set to 1 displaying the barcode as the smallest possible width. The barcode is rotated to the right by setting the orientation value to 2. In addition the barcode height is set to 30, making the barcode narrow.
UPCA barcode example 2 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="01234567890">
<param name="symbology" value="UPCA">
<param name="orientation" value="2">
<param name="bar_code_height" value="30">
<param name="bar_code_width" value="1">
<param name="check_digit_supplied" value="N">
<param name="text_display" value="N">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","01234567890");
mybarcode.setParam("symbology","UPCA");
mybarcode.setParam("orientation","2");
mybarcode.setParam("bar_code_height","30");
mybarcode.setParam("bar_code_width","1");
mybarcode.setParam("check_digit_supplied","N");
mybarcode.setParam("text_display","N");
EAN8: example 1
EAN8 barcode without providing the check digit. The barcode width is set to 1 displaying the barcode as the smallest possible width. The barcode height is set to 30, making the barcode narrow.
EAN8 barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="5512345">
<param name="symbology" value="EAN8">
<param name="orientation" value="0">
<param name="bar_code_height" value="30">
<param name="bar_code_width" value="1">
<param name="check_digit_supplied" value="N">
<param name="font_size" value="12">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","5512345");
mybarcode.setParam("symbology","EAN8");
mybarcode.setParam("orientation","0");
mybarcode.setParam("bar_code_height","30");
mybarcode.setParam("bar_code_width","1");
mybarcode.setParam("check_digit_supplied","N");
mybarcode.setParam("font_size","12");
UPCE: example 1
Basic UPCE barcode.
UPCE barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="04252614">
<param name="symbology" value="UPCE">
<param name="font_size" value="12">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","04252614");
mybarcode.setParam("symbology","UPCE");
mybarcode.setParam("font_size","12");
JAN: example 1
JAN barcode without providing the check digit. The barcode width is set to 2 displaying the barcode twice as wide as the smallest possible width. The barcode is rotated onto its head and the text font set to Tahoma.
JAN barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="493462345250">
<param name="symbology" value="JAN">
<param name="orientation" value="3">
<param name="bar_code_width" value="2">
<param name="check_digit_supplied" value="N">
<param name="font_size" value="18">
<param name="font_type" value="TAHOMA">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","493462345250");
mybarcode.setParam("symbology","JAN");
mybarcode.setParam("orientation","3");
mybarcode.setParam("bar_code_width","2");
mybarcode.setParam("check_digit_supplied","N");
mybarcode.setParam("font_size","18");
mybarcode.setParam("font_type","TAHOMA");
BOOKLAND: example 1
Bookland barcode based on the ISBN code. In this example the input bar code value is a ISBN number. Both the ISBN and the barcode number are displayed.
Bookland barcode example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="1-873756-84-4">
<param name="symbology" value="BOOKLAND">
<param name="bar_code_width" value="2">
<param name="bar_code_height" value="80">
<param name="font_size" value="18">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","1-873756-84-4");
mybarcode.setParam("symbology","BOOKLAND");
mybarcode.setParam("bar_code_width","2");
mybarcode.setParam("bar_code_height","80");
mybarcode.setParam("font_size","18");
BOOKLAND: example 2
Bookland barcode based on the ISBN code. In this example the input bar code value is a ISBN number. The ISBN is not displayed while the generated barcode numbers are displayed. The barcode is rotated to the left.
Bookland barcode example 2 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="978186207305">
<param name="symbology" value="EAN13">
<param name="orientation" value="1">
<param name="bar_code_width" value="1">
<param name="bar_code_height" value="40">
<param name="font_size" value="10">
<param name="text2_display" value="N">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","978186207305");
mybarcode.setParam("symbology","EAN13");
mybarcode.setParam("orientation","1");
mybarcode.setParam("bar_code_width","1");
mybarcode.setParam("bar_code_height","40");
mybarcode.setParam("font_size","10"); mybarcode.setParam("text2_display","N");
2 Digit supplement: example 1
2 Digit supplement with the width set to 2 displaying the barcode twice as wide as the smallest possible width.
2 Digit supplement example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="23">
<param name="symbology" value="SUP2">
<param name="bar_code_height" value="80">
<param name="bar_code_width" value="2">
<param name="font_size" value="18">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","23");
mybarcode.setParam("symbology","SUP2");
mybarcode.setParam("bar_code_height","80");
mybarcode.setParam("bar_code_width","2");
mybarcode.setParam("font_size","18");
5 Digit supplement: example 1
5 Digit supplement with the width set to 2 displaying the barcode twice as wide as the smallest possible width.
5 Digit supplement example 1 Applet code
<applet code="swiftbarcode.class" width="500" height="300">
<param name="bar_code_value" value="90100">
<param name="symbology" value="SUP5">
<param name="bar_code_height" value="80">
<param name="bar_code_width" value="2">
<param name="font_size" value="18">
</applet>

JSP/Servlet code
mybarcode.setParam("bar_code_value","90100");
mybarcode.setParam("symbology","SUP5");
mybarcode.setParam("bar_code_height","80");
mybarcode.setParam("bar_code_width","2");
mybarcode.setParam("font_size","18");