com.ferri.portlet.utils
Class PdfUtils

java.lang.Object
  extended by com.ferri.portlet.utils.PdfUtils

public class PdfUtils
extends Object

Classe on delega la generació de documents PDF amb les llibreries FOP.

Author:
dferri

Field Summary
static String PDF_TIPUS_CONTRACTE
           
static String PDF_TIPUS_FACTURA
           
static String PDF_TIPUS_PRESSUPOST
           
static String XSL_CONTRACTE
           
static String XSL_FACTURA
           
static String XSL_PRESSUPOST
           
 
Constructor Summary
PdfUtils()
           
 
Method Summary
static void generatePdf(String xml, String xslPath, File pdffile)
          Genera Pdf en fitxer per enviar com attachment
static void generatePdf(String xml, String xslPath, OutputStream osPdf)
          Genera un Pdf en memoria per obrir en request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF_TIPUS_FACTURA

public static final String PDF_TIPUS_FACTURA
See Also:
Constant Field Values

PDF_TIPUS_PRESSUPOST

public static final String PDF_TIPUS_PRESSUPOST
See Also:
Constant Field Values

PDF_TIPUS_CONTRACTE

public static final String PDF_TIPUS_CONTRACTE
See Also:
Constant Field Values

XSL_FACTURA

public static final String XSL_FACTURA
See Also:
Constant Field Values

XSL_PRESSUPOST

public static final String XSL_PRESSUPOST
See Also:
Constant Field Values

XSL_CONTRACTE

public static final String XSL_CONTRACTE
See Also:
Constant Field Values
Constructor Detail

PdfUtils

public PdfUtils()
Method Detail

generatePdf

public static void generatePdf(String xml,
                               String xslPath,
                               OutputStream osPdf)
Genera un Pdf en memoria per obrir en request

Parameters:
xml -
xslPath -
osPdf -

generatePdf

public static void generatePdf(String xml,
                               String xslPath,
                               File pdffile)
Genera Pdf en fitxer per enviar com attachment

Parameters:
xml -
xslPath -
pdffile -