Examples of PdfGenerator


Examples of info.bliki.pdf.PDFGenerator

        String renderedXHTML = buffer.toString();
        // System.out.println(renderedXHTML);
        File baseDirectory = new File(baseDirectoryName);
        try {
            URL url = baseDirectory.toURI().toURL();
            PDFGenerator gen = new PDFGenerator(url);
            gen.create(baseDirectoryName + '/' + filename, renderedXHTML, PDFGenerator.HEADER_TEMPLATE, PDFGenerator.FOOTER, "Big Test",
                    cssStyle);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of info.bliki.pdf.PDFGenerator

        String renderedXHTML = buffer.toString();
        // System.out.println(renderedXHTML);
        File baseDirectory = new File(baseDirectoryName);
        try {
            URL url = baseDirectory.toURI().toURL();
            PDFGenerator gen = new PDFGenerator(url);
            gen.create(baseDirectoryName + '/' + filename, renderedXHTML, PDFGenerator.HEADER_TEMPLATE, PDFGenerator.FOOTER, "Big Test",
                    cssStyle);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of no.kommune.bergen.soa.common.pdf.PdfGenerator

  private PrintFacade printFacade;
  private PrintServiceProvider mockPrintServiceProvider;

  @Before
  public void init() {
    PdfGenerator pdfGenerator = new SvarUtPdfGenerator("target");
    mockPrintServiceProvider = EasyMock.createNiceMock(PrintServiceProvider.class);
    printFacade = new PrintFacade(pdfGenerator, FRONT_PAGE_TEMPLATE_PROD, mockPrintServiceProvider, VelocityModelFactoryTest.createVelocityModelFactory());
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setAgencia("2971");
    jBoletoBean.setContaCorrente("08690");
    jBoletoBean.setDvContaCorrente("1");
    jBoletoBean.setNossoNumero("0000003248437", 13);
    jBoletoBean.setNoDocumento("0324843");
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.SANTANDER);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.SANTANDER);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setAgencia("2971");
    jBoletoBean.setContaCorrente("08690");
    jBoletoBean.setDvContaCorrente("1");
    jBoletoBean.setNossoNumero("102008044", 9);
    jBoletoBean.setNoDocumento("102008");
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.HSBC);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.HSBC);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setAgencia("2971");
    jBoletoBean.setContaCorrente("08690");
    jBoletoBean.setDvContaCorrente("1");
    jBoletoBean.setNossoNumero("34556", 8);
    jBoletoBean.setNoDocumento("34556");
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.ITAU);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.ITAU);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    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);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setCodigoOperacao("870");
    jBoletoBean.setCodigoFornecidoAgencia("00000324");
    jBoletoBean.setDvCodigoFornecidoAgencia("02");
    jBoletoBean.setNossoNumero("19525086", 8);
    jBoletoBean.setNoDocumento("987656123");
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.CAIXA_ECONOMICA);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.CAIXA_ECONOMICA);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setDvAgencia("1");
    jBoletoBean.setNoDocumento("321546");
    jBoletoBean.setContaCorrente("0006580");
    jBoletoBean.setDvContaCorrente("3");
    jBoletoBean.setNossoNumero("003", 11);
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.BRADESCO);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.BRADESCO);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
View Full Code Here

Examples of org.jboleto.control.PDFGenerator

    jBoletoBean.setContaCorrente("100618");
    jBoletoBean.setDvContaCorrente("9");
    jBoletoBean.setNossoNumero("1803029901", 14);
    // código do cliente fornecido pelo unibanco.
    jBoletoBean.setCodCliente("2031671");
    Generator generator = new PDFGenerator(jBoletoBean, JBoleto.UNIBANCO);
    JBoleto jBoleto = new JBoleto(generator, jBoletoBean, JBoleto.UNIBANCO);
    jBoleto.addBoleto();
    jBoleto.closeBoleto(fileName);
  }
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.