PDF Generator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LavanyaM
    New Member
    • May 2007
    • 12

    PDF Generator

    Hi,

    I want to display my content in pdf format. i dont want to save the file while generating itself. if the user want to save from the viewer he/she can save the file or can take the print out.

    I searched many sites but i dint get the correct thing which i need.

    Help me in this.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by LavanyaM
    Hi,

    I want to display my content in pdf format. i dont want to save the file while generating itself. if the user want to save from the viewer he/she can save the file or can take the print out.

    I searched many sites but i dint get the correct thing which i need.

    Help me in this.
    What do you mean by "i dont want to save the file while generating itself"? If you are looking for a package that helps in creating .pdf file then you can use itext.

    Comment

    • LavanyaM
      New Member
      • May 2007
      • 12

      #3
      "i dont want to save the file while generating itself" ---
      try {
      PdfWriter.getIn stance(document ,new FileOutputStrea m("C:\\Document s and Settings\\U1540 4\\Desktop\\GLF iles.pdf"));
      } catch (FileNotFoundEx ception e) {
      e.printStackTra ce();
      } catch (DocumentExcept ion e) {
      e.printStackTra ce();
      }
      document.open() ;

      PdfPTable table=new PdfPTable(7);


      this is my code. In this we are creating file and writing into the file. but i need to generate the report and display to the user.If the user wants, he/she can save the file.

      Comment

      Working...