Menu

Export to PDF feature not working

Help
Ram
2004-12-28
2012-10-08
  • Ram

    Ram - 2004-12-28

    I have set
    <display:setProperty name="export.pdf" value="true" />
    in my JSP page.However I do not get the PDF link in Export Options.Is there anything else that needs to be done.I am working with Tomcat 5.0.24 and Struts

     
    • fabrizio giustina

      you also need to add the itext jar to your web application classpath, see:
      http://displaytag.sourceforge.net/export.html

       
    • Ram

      Ram - 2004-12-29

      Thanks Fabrizio
      It works.The only hitch now is when it pops up the dialog box for opening/saving the PDF...saving and then opening works.However if I directly open it gives an error saying
      There was an error opening the document.This file cannot be found.

      Any ideas?

       
      • claire

        claire - 2005-01-10

        I get an error message when acrobat opens up saying "File does not begin with '%PDF-". Anyone have any ideas why?

         
        • fabrizio giustina

          did you configured the request filter for exporting? This sounds like displaytag is not able to correctly write to the response.
          Try saving the file to disk and opening it with a text editor to analyze its content

           

Log in to post a comment.

MongoDB Logo MongoDB