2 Replies Latest reply on Mar 11, 2010 10:11 PM by Kurt Bliefernich

    PDF rendering

    Sarat Kumar Newbie

      I used Itext examples and PDF generation work prefectly .



      But I have requirement below requirement
      when user clicks search button in portal, below tasks should be done at same time
      a) display the results in UI
      and b) export the search results in PDF .


      so here is how I am doing


      public List searchMaster(SearchVO searchVO) {
      ...
      ....
      ...
      list = entityManager.createQuery( ....) ;
      Renderer.instance().render(/pdf/pdf.xhtml);
      return list;
      }


      I am using the list result to show in the UI .
      but the problem is I am unable to render the pdftemplate (pdf.xhtml) .
      Please suggest , how can I render the PDF ?


      Thanks,
      S