|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.af.commons.io.pdf.PDFHelper
public class PDFHelper
This class contains static methods for creating PDF files with iText.
| Field Summary | |
|---|---|
static com.lowagie.text.Font |
font
|
static com.lowagie.text.Font |
fontb
|
static com.lowagie.text.Font |
fonth
|
| Constructor Summary | |
|---|---|
PDFHelper()
|
|
| Method Summary | |
|---|---|
static com.lowagie.text.pdf.PdfPTable |
createTable(List<List<Object>> xtable,
List<String> header)
Creates a PdfPTable. |
static void |
enable4Borders(com.lowagie.text.Cell cell)
Sets the four borders of a cell to 0.5f. |
static com.lowagie.text.Image |
getImage(com.lowagie.text.pdf.PdfWriter writer,
File file)
Returns a com.lowagie.text.Image from a image or PDF file. |
static com.lowagie.text.Image |
getPdfImage(com.lowagie.text.pdf.PdfWriter writer,
File file)
Returns a com.lowagie.text.Image from the first page of a PDF file. |
static boolean |
isPDF(File file)
Determines whether a given file is a PDF file by extension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static com.lowagie.text.Font font
public static com.lowagie.text.Font fontb
public static com.lowagie.text.Font fonth
| Constructor Detail |
|---|
public PDFHelper()
| Method Detail |
|---|
public static com.lowagie.text.Image getImage(com.lowagie.text.pdf.PdfWriter writer,
File file)
throws IOException,
com.lowagie.text.BadElementException
writer - PdfWriterfile - file to read
IOException
com.lowagie.text.BadElementException
public static com.lowagie.text.Image getPdfImage(com.lowagie.text.pdf.PdfWriter writer,
File file)
throws IOException,
com.lowagie.text.BadElementException
writer - PdfWriterfile - file to read
IOException
com.lowagie.text.BadElementExceptionpublic static boolean isPDF(File file)
file - file to check
public static com.lowagie.text.pdf.PdfPTable createTable(List<List<Object>> xtable,
List<String> header)
throws com.lowagie.text.BadElementException,
IOException
xtable - xtable.get(i) represents the i-th row of the tableheader - column headers for the table
com.lowagie.text.BadElementException
IOExceptionpublic static void enable4Borders(com.lowagie.text.Cell cell)
cell - Cell which borders are set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||