| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private Charset | |
| private static final float | DEFAULT_FONT_SIZE
The default font size |
| private static final float | DEFAULT_LINE_HEIGHT_FACTOR
The line height as a factor of the font size |
| private static final float | DEFAULT_MARGIN
The default margin |
| private PDFont | |
| private static final int | FONTSCALE
The scaling factor for font units to PDF units |
| private float | |
| private File | |
| private boolean | |
| private float | |
| private float | |
| private float[] | |
| private PDRectangle | |
| private File | |
| private TextToPDF. | |
| private float | |
| private Standard14Fonts. | |
| private final PrintStream | |
| private float | |
| private File |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Integer | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| public PDDocument | Returns: The document with the text in it.The stream of text data. text)Create a PDF document with some text. |
| public void | createPDFFromText(PDDocument
The document. doc, Reader The stream of text data. text)Create a PDF document with some text. |
| public float | |
| public PDFont | |
| public int | |
| public float | |
| public float | |
| public PDRectangle | |
| public float | |
| public float | |
| public boolean | |
| public static void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| bottomMargin | back to summary |
|---|---|
| private float bottomMargin | |
| charset | back to summary |
|---|---|
private Charset charset
| |
| DEFAULT_FONT_SIZE | back to summary |
|---|---|
| private static final float DEFAULT_FONT_SIZE The default font size | |
| DEFAULT_LINE_HEIGHT_FACTOR | back to summary |
|---|---|
| private static final float DEFAULT_LINE_HEIGHT_FACTOR The line height as a factor of the font size | |
| DEFAULT_MARGIN | back to summary |
|---|---|
| private static final float DEFAULT_MARGIN The default margin | |
| font | back to summary |
|---|---|
| private PDFont font | |
| FONTSCALE | back to summary |
|---|---|
| private static final int FONTSCALE The scaling factor for font units to PDF units | |
| fontSize | back to summary |
|---|---|
private float fontSize
| |
| infile | back to summary |
|---|---|
private File infile
| |
| landscape | back to summary |
|---|---|
private boolean landscape
| |
| leftMargin | back to summary |
|---|---|
| private float leftMargin | |
| lineSpacing | back to summary |
|---|---|
private float lineSpacing
| |
| margins | back to summary |
|---|---|
private float[] margins
| |
| mediaBox | back to summary |
|---|---|
| private PDRectangle mediaBox | |
| outfile | back to summary |
|---|---|
private File outfile
| |
| pageSize | back to summary |
|---|---|
private TextToPDF.
| |
| rightMargin | back to summary |
|---|---|
| private float rightMargin | |
| standardFont | back to summary |
|---|---|
private Standard14Fonts.
| |
| SYSERR | back to summary |
|---|---|
private final PrintStream SYSERR
| |
| topMargin | back to summary |
|---|---|
| private float topMargin | |
| ttf | back to summary |
|---|---|
private File ttf
| |
| TextToPDF | back to summary |
|---|---|
| public TextToPDF() Constructor. | |
| call | back to summary |
|---|---|
| public Integer call() Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |
| createPDFFromText | back to summary |
|---|---|
| public PDDocument createPDFFromText(Reader text) throws IOException Create a PDF document with some text.
| |
| createPDFFromText | back to summary |
|---|---|
| public void createPDFFromText(PDDocument doc, Reader text) throws IOException Create a PDF document with some text.
| |
| getBottomMargin | back to summary |
|---|---|
public float getBottomMargin()
| |
| getFont | back to summary |
|---|---|
public PDFont getFont()
| |
| getFontSize | back to summary |
|---|---|
public int getFontSize()
| |
| getLeftMargin | back to summary |
|---|---|
public float getLeftMargin()
| |
| getLineSpacing | back to summary |
|---|---|
public float getLineSpacing()
| |
| getMediaBox | back to summary |
|---|---|
| public PDRectangle getMediaBox() Sets page size of produced PDF.
| |
| getRightMargin | back to summary |
|---|---|
public float getRightMargin()
| |
| getTopMargin | back to summary |
|---|---|
public float getTopMargin()
| |
| isLandscape | back to summary |
|---|---|
| public boolean isLandscape() Tells the paper orientation.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) This will create a PDF document with some text in it.
| |
| setBottomMargin | back to summary |
|---|---|
public void setBottomMargin(float bottomMargin)
| |
| setFont | back to summary |
|---|---|
public void setFont(PDFont aFont)
| |
| setFontSize | back to summary |
|---|---|
| public void setFontSize(int aFontSize)
Deprecated
| |
| setFontSize | back to summary |
|---|---|
public void setFontSize(float aFontSize)
| |
| setLandscape | back to summary |
|---|---|
| public void setLandscape(boolean landscape) Sets paper orientation.
| |
| setLeftMargin | back to summary |
|---|---|
public void setLeftMargin(float leftMargin)
| |
| setLineSpacing | back to summary |
|---|---|
public void setLineSpacing(float lineSpacing)
| |
| setMediaBox | back to summary |
|---|---|
| public void setMediaBox(PDRectangle mediaBox) Sets page size of produced PDF. | |
| setRightMargin | back to summary |
|---|---|
public void setRightMargin(float rightMargin)
| |
| setTopMargin | back to summary |
|---|---|
public void setTopMargin(float topMargin)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| public static final TextToPDF. | |
| pack-priv final PDRectangle |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PDRectangle | |
| public static TextToPDF. | |
| public static TextToPDF. |
| A0 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A1 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A2 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A3 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A4 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A5 | back to summary |
|---|---|
| public static final TextToPDF. | |
| A6 | back to summary |
|---|---|
| public static final TextToPDF. | |
| LEGAL | back to summary |
|---|---|
| public static final TextToPDF. | |
| LETTER | back to summary |
|---|---|
| public static final TextToPDF. | |
| pageSize | back to summary |
|---|---|
| pack-priv final PDRectangle pageSize | |
| PageSizes | back to summary |
|---|---|
| private PageSizes(PDRectangle pageSize) | |
| getPageSize | back to summary |
|---|---|
| public PDRectangle getPageSize() | |
| valueOf | back to summary |
|---|---|
| public static TextToPDF. | |
| values | back to summary |
|---|---|
| public static TextToPDF. | |