public class TextToPDF
extends java.lang.Object
| Constructor and Description |
|---|
TextToPDF() |
| Modifier and Type | Method and Description |
|---|---|
PDDocument |
createPDFFromText(java.io.Reader text)
Create a PDF document with some text.
|
PDSimpleFont |
getFont() |
int |
getFontSize() |
static void |
main(java.lang.String[] args)
This will create a PDF document with some text in it.
|
void |
setFont(PDSimpleFont aFont) |
void |
setFontSize(int aFontSize) |
public PDDocument createPDFFromText(java.io.Reader text) throws java.io.IOException
text - The stream of text data.java.io.IOException - If there is an error writing the data.public static void main(java.lang.String[] args)
throws java.io.IOException
args - Command line arguments.java.io.IOException - If there is an error with the PDF.public PDSimpleFont getFont()
public void setFont(PDSimpleFont aFont)
aFont - The font to set.public int getFontSize()
public void setFontSize(int aFontSize)
aFontSize - The fontSize to set.