| java.lang.Object embedding.ExampleDOM2PDF
ExampleDOM2PDF | public class ExampleDOM2PDF (Code) | | This class demonstrates the conversion of a DOM Document to PDF
using JAXP (XSLT) and FOP (XSL-FO).
|
addElement | protected static void addElement(Node parent, String newNodeName, String textVal)(Code) | | Adds an element to the DOM.
Parameters: parent - parent node to attach the new element to Parameters: newNodeName - name of the new node Parameters: textVal - content of the element |
convertDOM2PDF | public void convertDOM2PDF(Document xslfoDoc, File pdf)(Code) | | Converts a DOM Document to a PDF file using FOP.
Parameters: xslfoDoc - the DOM Document Parameters: pdf - the target PDF file |
main | public static void main(String[] args)(Code) | | Main method.
Parameters: args - command-line arguments |
|
|