public class ITextUtil extends Object
iText framework| Constructor and Description |
|---|
ITextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.lowagie.text.Rectangle |
getDefaultPageSize()
Set the default page size for the document depending the user's country.
|
static String |
getPageSize(com.lowagie.text.Rectangle rect)
Return a page size as String.
|
static boolean |
isPageSizeSupported(String aPageSize)
Return
true if the page size is supported by PageSize class, false otherwise. |
static void |
writeHtml(InputStream is,
OutputStream os)
Parse an iText XML from the specified
InputStream, writing an html document
specified OutputStream. |
static void |
writePdf(InputStream is,
OutputStream os)
Parse an iText XML from the specified
InputStream, writing an Pdf document
specified OutputStream. |
static void |
writeRtf(InputStream is,
OutputStream os)
Parse an iText XML from the specified
InputStream, writing an rtf document
specified OutputStream. |
public ITextUtil()
public static com.lowagie.text.Rectangle getDefaultPageSize()
PageSizepublic static String getPageSize(com.lowagie.text.Rectangle rect)
rect - a Rectangle defined in PageSize.PageSizepublic static boolean isPageSizeSupported(String aPageSize)
true if the page size is supported by PageSize class, false otherwise.aPageSize - a page sizetrue if the page size is supported, false otherwisePageSizepublic static void writePdf(InputStream is, 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.XmlToPdfpublic static void writeRtf(InputStream is, 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.XmlToRtfpublic static void writeHtml(InputStream is, 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.XmlToHtmlCopyright © 2005–2014 The Apache Software Foundation. All rights reserved.