|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.doxia.module.itext.ITextUtil
public class ITextUtil
A set of util methods for the iText framework
| Constructor Summary | |
|---|---|
ITextUtil()
|
|
| Method Summary | |
|---|---|
static Rectangle |
getDefaultPageSize()
Set the default page size for the document depending the user's country. |
static java.lang.String |
getPageSize(Rectangle rect)
Return a page size as String. |
static boolean |
isPageSizeSupported(java.lang.String aPageSize)
Return true if the page size is supported by PageSize class, false otherwise. |
static void |
writeHtml(java.io.InputStream is,
java.io.OutputStream os)
Parse an iText XML from the specified InputStream, writing an html document
specified OutputStream. |
static void |
writePdf(java.io.InputStream is,
java.io.OutputStream os)
Parse an iText XML from the specified InputStream, writing an Pdf document
specified OutputStream. |
static void |
writeRtf(java.io.InputStream is,
java.io.OutputStream os)
Parse an iText XML from the specified InputStream, writing an rtf document
specified OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ITextUtil()
| Method Detail |
|---|
public static Rectangle getDefaultPageSize()
com.lowagie.text.PageSizepublic static java.lang.String getPageSize(Rectangle rect)
rect - a Rectangle defined in PageSize.
com.lowagie.text.PageSizepublic static boolean isPageSizeSupported(java.lang.String aPageSize)
true if the page size is supported by PageSize class, false otherwise.
aPageSize - a page size
true if the page size is supported, false otherwisecom.lowagie.text.PageSize
public static void writePdf(java.io.InputStream is,
java.io.OutputStream os)
InputStream, writing an Pdf document
specified OutputStream.
is - the InputStream from which the XML is read.os - the OutputStream to which the result as Pdf is written.com.lowagie.text.xml.XmlToPdf
public static void writeRtf(java.io.InputStream is,
java.io.OutputStream os)
InputStream, writing an rtf document
specified OutputStream.
is - the InputStream from which the XML is read.os - the OutputStream to which the result as RTF is written.com.lowagie.text.xml.XmlToRtf
public static void writeHtml(java.io.InputStream is,
java.io.OutputStream os)
InputStream, writing an html document
specified OutputStream.
is - the InputStream from which the XML is read.os - the OutputStream to which the result as Html is written.com.lowagie.text.xml.XmlToHtml
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||