Examples of BoletoGenerator


Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

    /**
     * @param args
     */
    public static void main(String[] args) {
  BoletoGenerator gerador = new BoletoGenerator(getBoletoBancoDoBrasil(),
    getBoletoBradesco(), getBoletoBancoDoBrasil());

  // Para gerar um boleto em PDF
  gerador.toPDF("Boletos.pdf");
    }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

      "1234").withInstrucoes("instrucao 1", "instrucao 2",
      "instrucao 3", "instrucao 4", "instrucao 5")
    .withLocaisDePagamento("local 1", "local 2").withNoDocumento(
      "4343");

  BoletoGenerator gerador = new BoletoGenerator(boleto);

  // Para gerar um boleto em PDF
  gerador.toPDF("BoletoBradesco.pdf");

  // Para gerar um boleto em PNG
  gerador.toPNG("BoletoBradesco.png");

  // Para gerar um array de bytes a partir de um PDF
  byte[] bPDF = gerador.toPDF();

  // Para gerar um array de bytes a partir de um PNG
  byte[] bPNG = gerador.toPNG();
    }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

      "1234").withInstrucoes("instrucao 1", "instrucao 2",
      "instrucao 3", "instrucao 4", "instrucao 5")
    .withLocaisDePagamento("local 1", "local 2").withNoDocumento(
      "4343");

  BoletoGenerator gerador = new BoletoGenerator(boleto);

  // Para gerar um boleto em PDF
  gerador.toPDF("BancoDoBrasil.pdf");

  // Para gerar um boleto em PNG
  gerador.toPNG("BancoDoBrasil.png");

  // Para gerar um array de bytes a partir de um PDF
  byte[] bPDF = gerador.toPDF();

  // Para gerar um array de bytes a partir de um PNG
  byte[] bPNG = gerador.toPNG();
    }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

            "1234").withInstrucoes("instrucao 1", "instrucao 2",
            "instrucao 3", "instrucao 4", "instrucao 5")
        .withLocaisDePagamento("local 1", "local 2").withNoDocumento(
            "4343");

    BoletoGenerator gerador = new BoletoGenerator(boleto);

    // Para gerar um boleto em PDF
    gerador.toPDF("teste.pdf");

    // Para gerar um boleto em PNG
    gerador.toPNG("teste.png");

    // Para gerar um array de bytes a partir de um PDF
    byte[] bPDF = gerador.toPDF();

    // Para gerar um array de bytes a partir de um PNG
    byte[] bPNG = gerador.toPNG();
  }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

            .withInstrucoes("instrucao 1", "instrucao 2",
                        "instrucao 3", "instrucao 4", "instrucao 5")
            .withLocaisDePagamento("local 1", "local 2")
            .withNoDocumento("4343");

        BoletoGenerator gerador = new BoletoGenerator(boleto);

        // Para gerar um boleto em PDF
        gerador.toPDF("BoletoBradesco.pdf");

        // Para gerar um boleto em PNG
        gerador.toPNG("BoletoBradesco.png");

        // Para gerar um array de bytes a partir de um PDF
        @SuppressWarnings("unused")
        byte[] bPDF = gerador.toPDF();

        // Para gerar um array de bytes a partir de um PNG
        @SuppressWarnings("unused")
        byte[] bPNG = gerador.toPNG();
    }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

      .withInstrucoes("instrucao 1", "instrucao 2",
            "instrucao 3", "instrucao 4", "instrucao 5")
      .withLocaisDePagamento("local 1", "local 2")
      .withNoDocumento("4343");

    BoletoGenerator gerador = new BoletoGenerator(boleto);

    // Para gerar um boleto em PDF
    gerador.toPDF("BancoDoBrasil.pdf");

    // Para gerar um boleto em PNG
    gerador.toPNG("BancoDoBrasil.png");

    // Para gerar um array de bytes a partir de um PDF
    @SuppressWarnings("unused")
    byte[] bPDF = gerador.toPDF();

    // Para gerar um array de bytes a partir de um PNG
    @SuppressWarnings("unused")
    byte[] bPNG = gerador.toPNG();
  }
View Full Code Here

Examples of br.com.caelum.stella.boleto.transformer.BoletoGenerator

import br.com.caelum.stella.boleto.bancos.Bradesco;
import br.com.caelum.stella.boleto.transformer.BoletoGenerator;

public class BoletosToPdfExample {
    public static void main(String[] args) {
        BoletoGenerator gerador = new BoletoGenerator(getBoletoBancoDoBrasil(),
                getBoletoBradesco(), getBoletoBancoDoBrasil());

        // Para gerar um boleto em PDF
        gerador.toPDF("Boletos.pdf");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.