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

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

Introduction

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

Prototype

public void setCode(String code) 

Source Link

Document

Sets the code to generate.

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);
    Image myBarCodeImageInter25 = myBarcode25.createImageWithBarcode(contentByte, null, null);
    return myBarCodeImageInter25;
}