• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Creating PDF file using FileOutputStream

 
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,
Is it possible to create the PDF file like below.



If yes, i am not able to open the file. Getting the error file is corrupted.
Why i am getting the error?

If no, then how i can create the PDF file.

Can any one clear my doubt....
Thanks
Param
[ June 28, 2007: Message edited by: Parameswaran Thangavel ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't create a PDf file by creating a text file and giving it a .pdf extension. You need to use a library like iText. The simplest Java program that can create PDF files is something like this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic