• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating PDF file using FileOutputStream  RSS feed

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!