public class SmartPdf extends Object
| Constructor and Description |
|---|
SmartPdf() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.itextpdf.text.Element element) |
void |
addStyle(String name,
int family,
int size,
int style,
int r,
int g,
int b) |
void |
close() |
void |
copyTo(OutputStream out) |
com.itextpdf.text.pdf.PdfPCell |
newCell(com.itextpdf.text.Phrase text) |
com.itextpdf.text.Chapter |
newChapter(com.itextpdf.text.Paragraph p) |
Color |
newColor(int r,
int g,
int b) |
com.itextpdf.text.Chunk |
newImage(String url) |
void |
newLine() |
com.itextpdf.text.List |
newList(boolean numbered,
int points) |
com.itextpdf.text.ListItem |
newListItem(String text) |
void |
newPage() |
com.itextpdf.text.Paragraph |
newParagraph() |
com.itextpdf.text.Paragraph |
newParagraph(String text) |
com.itextpdf.text.Paragraph |
newParagraph(String text,
String style) |
com.itextpdf.text.Phrase |
newPhrase(String text) |
com.itextpdf.text.Phrase |
newPhrase(String text,
String style) |
com.itextpdf.text.pdf.PdfPTable |
newTable(int cols) |
void |
open() |
public void addStyle(String name, int family, int size, int style, int r, int g, int b) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentExceptionIOExceptionpublic com.itextpdf.text.Chapter newChapter(com.itextpdf.text.Paragraph p)
throws Exception
Exceptionpublic com.itextpdf.text.Paragraph newParagraph(String text) throws Exception
Exceptionpublic com.itextpdf.text.Paragraph newParagraph(String text, String style) throws Exception
Exceptionpublic com.itextpdf.text.Phrase newPhrase(String text)
public com.itextpdf.text.pdf.PdfPTable newTable(int cols)
throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementExceptionpublic com.itextpdf.text.pdf.PdfPCell newCell(com.itextpdf.text.Phrase text)
throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementExceptionpublic com.itextpdf.text.List newList(boolean numbered,
int points)
throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementExceptionpublic com.itextpdf.text.ListItem newListItem(String text) throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementExceptionpublic Color newColor(int r, int g, int b) throws com.itextpdf.text.BadElementException
com.itextpdf.text.BadElementExceptionpublic void add(com.itextpdf.text.Element element)
throws com.itextpdf.text.DocumentException
com.itextpdf.text.DocumentExceptionpublic void copyTo(OutputStream out) throws Exception
ExceptionCopyright © 2015. All rights reserved.