| |
|
| java.lang.Object org.pdfbox.TextToPDF
TextToPDF | public class TextToPDF (Code) | | This will take a text file and ouput a pdf with that text.
author: Ben Litchfield version: $Revision: 1.4 $ |
createPDFFromText | public PDDocument createPDFFromText(Reader text) throws IOException(Code) | | Create a PDF document with some text.
Parameters: text - The stream of text data. The document with the text in it. throws: IOException - If there is an error writing the data. |
getFontSize | public int getFontSize()(Code) | | Returns the fontSize. |
main | public static void main(String[] args) throws IOException(Code) | | This will create a PDF document with a single image on it.
see usage() for commandline
Parameters: args - Command line arguments. throws: IOException - If there is an error with the PDF. |
setFontSize | public void setFontSize(int aFontSize)(Code) | | Parameters: aFontSize - The fontSize to set. |
|
|
|