jBoletoBean.setContaCorrente("00543004"); // completar com zeros quando necessario
jBoletoBean.setNumConvenio("1101354");
jBoletoBean.setNossoNumero("0005963971", 10);
jBoletoBean.setDvContaCorrente("2");
jBoletoBean.setDvAgencia("8");
Generator generator = new PDFGenerator(jBoletoBean, JBoleto.BANCO_DO_BRASIL);
JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.BANCO_DO_BRASIL);
jBoleto.addBoleto();
jBoleto.closeBoleto(fileName);
}