br.com.caelum.stella.boleto.transformer
Class PDFBoletoWriter

java.lang.Object
  extended by br.com.caelum.stella.boleto.transformer.PDFBoletoWriter
All Implemented Interfaces:
BoletoWriter

public class PDFBoletoWriter
extends Object
implements BoletoWriter

Writer que sabe escrever num PDF usando IText como dependencia.

Author:
Cauê Guerra, Paulo Silveira
See Also:
http://stella.caelum.com.br/boleto-setup.html

Constructor Summary
PDFBoletoWriter()
           
PDFBoletoWriter(double width, double height)
           
 
Method Summary
 InputStream toInputStream()
          Grava num InputStream
 void write(float x, float y, String text)
          Escreve um texto na posição x, y com fonte normal (VERDANA, 8)
 void writeBold(float x, float y, String text)
          Escreve um texto na posição x, y com fonte bold (VERDANA_BOLD, 10)
 void writeImage(float x, float y, BufferedImage image, float width, float height)
          Escreve uma imagem na posição x, y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFBoletoWriter

public PDFBoletoWriter(double width,
                       double height)

PDFBoletoWriter

public PDFBoletoWriter()
Method Detail

toInputStream

public InputStream toInputStream()
Description copied from interface: BoletoWriter
Grava num InputStream

Specified by:
toInputStream in interface BoletoWriter
Returns:

write

public void write(float x,
                  float y,
                  String text)
Description copied from interface: BoletoWriter
Escreve um texto na posição x, y com fonte normal (VERDANA, 8)

Specified by:
write in interface BoletoWriter

writeBold

public void writeBold(float x,
                      float y,
                      String text)
Description copied from interface: BoletoWriter
Escreve um texto na posição x, y com fonte bold (VERDANA_BOLD, 10)

Specified by:
writeBold in interface BoletoWriter

writeImage

public void writeImage(float x,
                       float y,
                       BufferedImage image,
                       float width,
                       float height)
                throws IOException
Description copied from interface: BoletoWriter
Escreve uma imagem na posição x, y

Specified by:
writeImage in interface BoletoWriter
Throws:
IOException


Copyright © 2008 Caelum. All Rights Reserved.