com.ferri.portlet.utils
Class PdfUtils
java.lang.Object
com.ferri.portlet.utils.PdfUtils
public class PdfUtils
- extends Object
Classe on delega la generació de documents PDF amb les llibreries FOP.
- Author:
- dferri
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PdfUtils
public PdfUtils()
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
-