Example usage for com.itextpdf.text.pdf BarcodePostnet setCodeType

List of usage examples for com.itextpdf.text.pdf BarcodePostnet setCodeType

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BarcodePostnet setCodeType.

Prototype

public void setCodeType(int codeType) 

Source Link

Document

Sets the code type.

Usage

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

/** creating a barcode image using BarCodeInter25 */
public Image createBarcodePostnetPlanet(String myText) {
    BarcodePostnet myBarCodePostnetPlanet = new BarcodePostnet();
    myBarCodePostnetPlanet.setCode(myText);
    myBarCodePostnetPlanet.setCodeType(Barcode.PLANET);
    Image myBarCodeImagePostntPlanet = myBarCodePostnetPlanet.createImageWithBarcode(contentByte, null, null);
    return myBarCodeImagePostntPlanet;
}