com.clickntap.tool.doc
Class SmartPdf
java.lang.Object
com.clickntap.tool.doc.SmartPdf
- Direct Known Subclasses:
- ScriptableSmartPdf
public class SmartPdf
- extends Object
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmartPdf
public SmartPdf()
open
public void open()
throws Exception
- Throws:
Exception
close
public void close()
throws Exception
- Throws:
Exception
addStyle
public void addStyle(String name,
int family,
int size,
int style,
int r,
int g,
int b)
throws com.itextpdf.text.DocumentException,
IOException
- Throws:
com.itextpdf.text.DocumentException
IOException
newPage
public void newPage()
throws Exception
- Throws:
Exception
newLine
public void newLine()
throws Exception
- Throws:
Exception
newChapter
public com.itextpdf.text.Chapter newChapter(com.itextpdf.text.Paragraph p)
throws Exception
- Throws:
Exception
newParagraph
public com.itextpdf.text.Paragraph newParagraph(String text)
throws Exception
- Throws:
Exception
newParagraph
public com.itextpdf.text.Paragraph newParagraph()
throws Exception
- Throws:
Exception
newParagraph
public com.itextpdf.text.Paragraph newParagraph(String text,
String style)
throws Exception
- Throws:
Exception
newPhrase
public com.itextpdf.text.Phrase newPhrase(String text)
newPhrase
public com.itextpdf.text.Phrase newPhrase(String text,
String style)
newTable
public com.itextpdf.text.pdf.PdfPTable newTable(int cols)
throws com.itextpdf.text.BadElementException
- Throws:
com.itextpdf.text.BadElementException
newCell
public com.itextpdf.text.pdf.PdfPCell newCell(com.itextpdf.text.Phrase text)
throws com.itextpdf.text.BadElementException
- Throws:
com.itextpdf.text.BadElementException
newList
public com.itextpdf.text.List newList(boolean numbered,
int points)
throws com.itextpdf.text.BadElementException
- Throws:
com.itextpdf.text.BadElementException
newListItem
public com.itextpdf.text.ListItem newListItem(String text)
throws com.itextpdf.text.BadElementException
- Throws:
com.itextpdf.text.BadElementException
newColor
public Color newColor(int r,
int g,
int b)
throws com.itextpdf.text.BadElementException
- Throws:
com.itextpdf.text.BadElementException
newImage
public com.itextpdf.text.Chunk newImage(String url)
throws Exception
- Throws:
Exception
add
public void add(com.itextpdf.text.Element element)
throws com.itextpdf.text.DocumentException
- Throws:
com.itextpdf.text.DocumentException
copyTo
public void copyTo(OutputStream out)
throws Exception
- Throws:
Exception
Copyright © 2014. All rights reserved.