Class JsrRTF

java.lang.Object
  extended by JsrRTF

public class JsrRTF
extends java.lang.Object

Convert input to Rich Text Format


Constructor Summary
JsrRTF()
           
 
Method Summary
 void close()
          Close any open output file.
static void main(java.lang.String[] parm)
          main is to run from command line.
 void setEditEsc(boolean newValue)
          Set Edit Escape characters.
 void setFace(java.lang.String newValue)
          Set Font Face (default "Lucida Console").
 void setFs(java.lang.String newValue)
          Set Font Size value ii.
 void setLine(java.lang.String newLine)
          Write a line to RTF output file.
 void setMargb(java.lang.String newValue)
          Set Bottom Margin value iii.
 void setMargl(java.lang.String newValue)
          Set Right Margin value iii.
 void setMargr(java.lang.String newValue)
          Set Left Margin value iii.
 void setMargt(java.lang.String newValue)
          Set Top Margin value iii.
 void setName(java.lang.String fileName)
          Opens output file fileName (do NOT include .rtf extension).
 void setPage()
          Write a newPage command to RTF output file.
 void setSl(java.lang.String newValue)
          Set Line Height value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsrRTF

public JsrRTF()
Method Detail

setMargl

public void setMargl(java.lang.String newValue)
Set Right Margin value iii. (default 700).


setMargr

public void setMargr(java.lang.String newValue)
Set Left Margin value iii. (default 600).


setMargt

public void setMargt(java.lang.String newValue)
Set Top Margin value iii. (default 450).


setMargb

public void setMargb(java.lang.String newValue)
Set Bottom Margin value iii. (default 700).


setFs

public void setFs(java.lang.String newValue)
Set Font Size value ii. (default 14).


setSl

public void setSl(java.lang.String newValue)
Set Line Height value. iii (default null).
Line Height varies depending on Font Size.
For Font Size 12, sl=240.


setFace

public void setFace(java.lang.String newValue)
Set Font Face (default "Lucida Console").


setEditEsc

public void setEditEsc(boolean newValue)
Set Edit Escape characters. (default = true).
Set to False if you want RTF command embedded in text to be interpreted as commands.


setName

public void setName(java.lang.String fileName)
Opens output file fileName (do NOT include .rtf extension).
If another file is open, this will close it and open another.


setPage

public void setPage()
Write a newPage command to RTF output file.


setLine

public void setLine(java.lang.String newLine)
Write a line to RTF output file.


close

public void close()
Close any open output file.


main

public static void main(java.lang.String[] parm)
main is to run from command line. run w/o parameters to see command line options.
usage:
JsrRTF <input file> <optional parms...>");
defaults:
l=600 r=700 t=450 b=700 (margins)");
(margins in TWIPS, 2400 TWIPS=1 inch)");
sl=null (sl=240=6LPI, sl=180=8LPI)");
fs=14 =Word Font Size 7");
10cpi sets fs=24=Word Font Size 12");
12cpi sets fs=20=Word Font Size 10");
face=Lucida Console (f0),");
\\f1=Monotype Sorts, \\f2=Wingdings, \\f3=Webdings");
NoEsc turns off edit of \\ { and } to \\ \\{ and \\},");
so can embed \\f# ... \\f0 commands.");