public class XmlToPdf extends XmlToXXX
XmlToXXX.| Constructor and Description |
|---|
XmlToPdf()
Construct an
XmlToPdf with the default page size. |
XmlToPdf(String pageSize)
Construct an
XmlToPdf with the specified page size. |
| Modifier and Type | Method and Description |
|---|---|
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. |
public XmlToPdf()
XmlToPdf with the default page size.public XmlToPdf(String pageSize)
XmlToPdf with the specified page size.pageSize - String page size name from
com.lowagie.text.PageSize.protected final void addWriter(Document doc, OutputStream out) throws DocumentException
DocWriter for the specified Document and
OutputStream.addWriter in class XmlToXXXdoc - The document to which content will be addedout - The outputstream to which the PDF will be sentDocumentException - if document errors occur.public static void main(String[] args)
XmlToPdf class.args - String[] of command-line arguments.