Hi Domenico

I think that the problem lies within the doExport(OutputStream out) method
in the class PDFView.

            generatePDFTable();
            document.open();
            document.setFooter(footer);
            document.add(this.tablePDF);
            document.close();

It should work if you first set the footer and then open the document.

            generatePDFTable();
            document.setFooter(footer);
            document.open();
            document.add(this.tablePDF);
            document.close();

Just try it.
Daniel


Daniel B�hler

CSC Switzerland GmbH
Morgenstrasse 129
3018 Bern
Switzerland
Phone: +41 31 998 46 12
Fax: +41 31 998 47 47
e-Mail: [EMAIL PROTECTED]
Internet: http://www.ch.csc.com





|---------+--------------------------->
|         |           Domenico Barba  |
|         |           <domenico.barba |
|         |           @gmail.com>     |
|         |           Sent by:        |
|         |           displaytag-user-|
|         |           admin           |
|         |                           |
|         |                           |
|         |           31.03.2005 16:14|
|         |           Please respond  |
|         |           to              |
|         |           displaytag-user |
|         |                           |
|---------+--------------------------->
  
>-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                  |
  |        To:      [email protected]                       
                                                  |
  |        cc:                                                                  
                                                  |
  |        Subject: [displaytag-user] problem with PDF export                   
                                                  |
  
>-------------------------------------------------------------------------------------------------------------------------------|




Hi all,

I am trying to export a PDF file but I am not able to  add the "pdf
label" to the table's footer, therefore I can't export the pdf
document!!!

I coded my PdfView class (that  inherits from BynaryExportView) and
added  the following lines to displaytag.properties:

export.types= xml excel csv pdf
[...]
export.pdf.enabled=true
export.pdf=true
export.pdf.label=PDF
export.pdf.class=org.displaytag.export.PdfView
export.pdf.include_header=true
export.pdf.filename=myFile.pdf

Moreover, I have in my WEB-INF/lib the iText jar (version 1.2).

Where is the problem ??

Thanks in advance,
Domenico


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user





-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to