|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.pdf.PdfCreator
com.jfw.pdf.Jsp2Pdf
public final class Jsp2Pdf
Crea un file pdf a partire da una jsp. Utilizza la libreria itext per
la creazione del pdf e la classe HtmlParser per il parsing
del html.
Utilzza la classe HtmlParser per il parsing del html.
La classe viene utilizzata nel seguente modo:
String url = "http://mysite/jsp2ModifyInPdf.jsp";
Jsp2Pdf jsp2Pdf = new Jsp2Pdf(url);
jsp2Pdf.create();
jsp2Pdf.sendPdf(request, name);
o per avere il documento pdf
com.lowagie.text.pdf.PdfWriter pdf = jsp2Pdf.getPdf();
| Constructor Summary | |
|---|---|
Jsp2Pdf(java.lang.String url)
Crea una istanza della classe. |
|
| Method Summary | |
|---|---|
void |
create()
|
java.lang.Object |
get()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jsp2Pdf(java.lang.String url)
url - l'url della jsp che crea l'html da utilizzare per creare il pdf.| Method Detail |
|---|
public void create()
create in class PdfCreatorpublic java.lang.Object get()
get in class PdfCreator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||