Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.BarcodeInter25


   * @param altura, que é a altura (Barheight) que deve ficar a imagem.
   *
   * @return imagem com o código de barras para a string do código
   */
  static Image geraImagemDoCodigoDeBarrasPara(String codigo, float altura) {
    BarcodeInter25 bar = new BarcodeInter25();
    bar.setCode(codigo);
    bar.setExtended(true);
    bar.setTextAlignment(Element.ALIGN_LEFT);
    bar.setBarHeight(altura);
    bar.setFont(null);
    bar.setX(0.73f);
    bar.setN(3);
    return bar.createAwtImage(Color.BLACK, Color.WHITE);
  }
View Full Code Here


     * Retorna uma imagem com o código de barras para uma determinada String
     *
     * @param code
     */
    static Image generateBarcodeFor(String code) {
        BarcodeInter25 bar = new BarcodeInter25();
        bar.setCode(code);
        bar.setExtended(true);

        bar.setTextAlignment(Element.ALIGN_LEFT);
        bar.setBarHeight(37.00f);
        bar.setFont(null);
        bar.setX(0.73f);
        bar.setN(3);
        return bar.createAwtImage(Color.BLACK, Color.WHITE);
    }
View Full Code Here

            LwgImage image128 = code128.createImageWithBarcode(cb, null, null);
            BarcodeEAN codeEAN = new BarcodeEAN();
            codeEAN.setCodeType(Barcode.EAN13);
            codeEAN.setCode("9780201615883");
            LwgImage imageEAN = codeEAN.createImageWithBarcode(cb, null, null);
            BarcodeInter25 code25 = new BarcodeInter25();
            code25.setGenerateChecksum(true);
            code25.setCode("41-1200076041-001");
            LwgImage image25 = code25.createImageWithBarcode(cb, null, null);
            BarcodePostnet codePost = new BarcodePostnet();
            codePost.setCode("12345");
            LwgImage imagePost = codePost.createImageWithBarcode(cb, null, null);
            BarcodePostnet codePlanet = new BarcodePostnet();
            codePlanet.setCode("50201402356");
View Full Code Here

            Image image128 = code128.createImageWithBarcode(cb, null, null);
            BarcodeEAN codeEAN = new BarcodeEAN();
            codeEAN.setCodeType(Barcode.EAN13);
            codeEAN.setCode("9780201615883");
            Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null);
            BarcodeInter25 code25 = new BarcodeInter25();
            code25.setGenerateChecksum(true);
            code25.setCode("41-1200076041-001");
            Image image25 = code25.createImageWithBarcode(cb, null, null);
            BarcodePostnet codePost = new BarcodePostnet();
            codePost.setCode("12345");
            Image imagePost = codePost.createImageWithBarcode(cb, null, null);
            BarcodePostnet codePlanet = new BarcodePostnet();
            codePlanet.setCode("50201402356");
View Full Code Here

     * Retorna uma imagem com o código de barras para uma determinada String
     *
     * @param code
     */
    static Image generateBarcodeFor(String code,float barHeight) {
        BarcodeInter25 bar = new BarcodeInter25();
        bar.setCode(code);
        bar.setExtended(true);      
        bar.setTextAlignment(Element.ALIGN_LEFT);
        bar.setBarHeight(barHeight);          
        bar.setFont(null);
        bar.setX(0.73f);
        bar.setN(3);         
        return bar.createAwtImage(Color.BLACK, Color.WHITE);
    }
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.BarcodeInter25

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.