org.apache.maven.doxia.module.itext
public class ITextUtil extends java.lang.Object
iText
frameworkConstructor 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 java.lang.String |
getPageSize(com.lowagie.text.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 . |
public static com.lowagie.text.Rectangle getDefaultPageSize()
PageSize
public static java.lang.String getPageSize(com.lowagie.text.Rectangle rect)
rect
- a Rectangle defined in PageSize
.PageSize
public static boolean isPageSizeSupported(java.lang.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
otherwisePageSize
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.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.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.XmlToHtml
Copyright © 2005-2014. All Rights Reserved.