Click here to Skip to main content
15,891,981 members
Home / Discussions / Java
   

Java

 
GeneralRe: help regarding j2ee Pin
madhu91242-Oct-09 1:34
madhu91242-Oct-09 1:34 
QuestionStruts - tiles Pin
sangeethanarayan30-Sep-09 21:04
sangeethanarayan30-Sep-09 21:04 
AnswerRe: Struts - tiles Pin
427748030-Sep-09 21:56
427748030-Sep-09 21:56 
QuestionSending mails by lotus notes using javascript Pin
divya.katti30-Sep-09 20:46
divya.katti30-Sep-09 20:46 
AnswerRe: Sending mails by lotus notes using javascript Pin
427748030-Sep-09 21:55
427748030-Sep-09 21:55 
QuestionCreating PDF Pin
akashj8730-Sep-09 9:32
akashj8730-Sep-09 9:32 
AnswerRe: Creating PDF Pin
427748030-Sep-09 10:51
427748030-Sep-09 10:51 
AnswerRe: Creating PDF Pin
Richard MacCutchan30-Sep-09 11:28
mveRichard MacCutchan30-Sep-09 11:28 
akashj87 wrote:
FileOutputStream fos=new FileOutputStream("file.pdf");


You need to understand that this does not create a PDF file. The extension of "pdf" means nothing to Java or to Windows/UNIX, it is merely a convention for humans to recognise the type of file, but the application still has to do the work to create the file.

The definition of DataOutputStream.writeChars() states that it Writes a string to the underlying output stream as a sequence of characters. The structure of a PDF file is much more complex than this (see the specifications on the Adobe web site). The easiest way to achieve your objective is use the tools that are available.
AnswerRe: Creating PDF Pin
Member 827588228-Sep-11 9:59
Member 827588228-Sep-11 9:59 
QuestionJava Opensource read German,French,... Pin
sharkbc30-Sep-09 0:08
sharkbc30-Sep-09 0:08 
AnswerRe: Java Opensource read German,French,... Pin
427748030-Sep-09 0:48
427748030-Sep-09 0:48 
GeneralRe: Java Opensource read German,French,... [modified] Pin
sharkbc30-Sep-09 16:41
sharkbc30-Sep-09 16:41 
GeneralRe: Java Opensource read German,French,... [modified] Pin
sharkbc30-Sep-09 17:21
sharkbc30-Sep-09 17:21 
GeneralRe: Java Opensource read German,French,... Pin
427748030-Sep-09 21:53
427748030-Sep-09 21:53 
GeneralRe: Java Opensource read German,French,... [modified] Pin
sharkbc30-Sep-09 22:49
sharkbc30-Sep-09 22:49 
GeneralRe: Java Opensource read German,French,... Pin
427748030-Sep-09 23:51
427748030-Sep-09 23:51 
AnswerRe: Java Opensource read German,French,... Pin
dasli2-Oct-09 1:19
dasli2-Oct-09 1:19 
Questionread bytes Pin
jonig1929-Sep-09 17:51
jonig1929-Sep-09 17:51 
AnswerRe: read bytes Pin
Richard MacCutchan29-Sep-09 22:08
mveRichard MacCutchan29-Sep-09 22:08 
AnswerRe: read bytes Pin
427748030-Sep-09 0:49
427748030-Sep-09 0:49 
QuestionHindi,Indic (Devnagri) Language Support in (Java, Struts,MS Access) Pin
KuldeepRaajSharma26-Sep-09 4:51
KuldeepRaajSharma26-Sep-09 4:51 
AnswerRe: Hindi,Indic (Devnagri) Language Support in (Java, Struts,MS Access) Pin
427748026-Sep-09 6:15
427748026-Sep-09 6:15 
QuestionPOI ShrinkToFit Pin
DaveyM6926-Sep-09 1:30
professionalDaveyM6926-Sep-09 1:30 
AnswerRe: POI ShrinkToFit Pin
427748026-Sep-09 1:36
427748026-Sep-09 1:36 
GeneralRe: POI ShrinkToFit Pin
DaveyM6926-Sep-09 3:06
professionalDaveyM6926-Sep-09 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.