com.lowagie.text.xml
Class XmlToPdf
java.lang.Object
com.lowagie.text.xml.XmlToXXX
com.lowagie.text.xml.XmlToPdf
- public class XmlToPdf
- extends XmlToXXX
PDF-specific subclass of XmlToXXX
.
- Version:
- 1.0
- Author:
- Matt Benson
Constructor Summary |
XmlToPdf()
Construct an XmlToPdf with the default page size. |
XmlToPdf(String pageSize)
Construct an XmlToPdf with the specified page size. |
Method Summary |
protected void |
addWriter(Document doc,
OutputStream out)
Add a DocWriter for the specified Document and
OutputStream . |
static void |
main(String[] args)
Main method of the XmlToPdf class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlToPdf
public XmlToPdf()
- Construct an
XmlToPdf
with the default page size.
XmlToPdf
public XmlToPdf(String pageSize)
- Construct an
XmlToPdf
with the specified page size.
- Parameters:
pageSize
- String
page size name from
com.lowagie.text.PageSize
.
addWriter
protected final void addWriter(Document doc,
OutputStream out)
throws DocumentException
- Add a
DocWriter
for the specified Document
and
OutputStream
.
- Specified by:
addWriter
in class XmlToXXX
- Throws:
DocumentException
- if document errors occur.
main
public static void main(String[] args)
- Main method of the
XmlToPdf
class.
- Parameters:
args
- String[]
of command-line arguments.