HelloWorld Rtf : RTF Writer « PDF RTF « Java
- Java
- PDF RTF
- RTF Writer
HelloWorld Rtf

import java.io.FileOutputStream;
import com.lowagie.text.Document;
import com.lowagie.text.Paragraph;
import com.lowagie.text.rtf.RtfWriter2;
public class HelloWorldRtf {
public static void main(String[] args) {
try {
Document document = new Document();
RtfWriter2.getInstance(document, new FileOutputStream("HelloWorldRtf.rtf"));
document.open();
document.add(new Paragraph("Hello World!"));
document.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
itext.zip( 1,748 k)Related examples in the same category