org.pdfbox
Class TextToPDF
public class TextToPDF
extends java.lang.Object
This will take a text file and ouput a pdf with that text.
createPDFFromText
public PDDocument createPDFFromText(Reader text)
throws IOException Create a PDF document with some text.
text - The stream of text data.
- The document with the text in it.
getFontSize
public int getFontSize()
main
public static void main(String[] args)
throws IOException This will create a PDF document with a single image on it.
see usage() for commandline
args - Command line arguments.
setFontSize
public void setFontSize(int aFontSize)
aFontSize - The fontSize to set.