Example usage for com.itextpdf.text.pdf BarcodeInter25 setGenerateChecksum

List of usage examples for com.itextpdf.text.pdf BarcodeInter25 setGenerateChecksum

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BarcodeInter25 setGenerateChecksum.

Prototype

public void setGenerateChecksum(boolean generateChecksum) 

Source Link

Document

Setter for property generateChecksum.

Usage

From source file:org.unesco.jisis.printsort.BarCodeGenerator.java

/** creating a barcode image using BarCodeInter25 for myText*/
public Image createBarcodeInter25(String myText) {
    BarcodeInter25 myBarcode25 = new BarcodeInter25();
    myBarcode25.setGenerateChecksum(true);
    myBarcode25.setCode(myText);/*from  www  .j  av a2 s .com*/
    Image myBarCodeImageInter25 = myBarcode25.createImageWithBarcode(contentByte, null, null);
    return myBarCodeImageInter25;
}