org.foray.demo.embed
Class DemoXML2PDF

java.lang.Object
  extended by org.foray.demo.embed.EmbedDemo
      extended by org.foray.demo.embed.DemoXML2PDF

public class DemoXML2PDF
extends EmbedDemo

This class demonstrates the conversion of an XML file to PDF using JAXP (XSLT) and FOray (XSL:FO).


Constructor Summary
DemoXML2PDF()
           
 
Method Summary
 void convertXML2PDF(File xml, File xslt, File pdf)
          Demonstration of Conversion from XSL to PDF.
static void main(String[] args)
          Command-line interface for this class.
 
Methods inherited from class org.foray.demo.embed.EmbedDemo
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoXML2PDF

public DemoXML2PDF()
Method Detail

convertXML2PDF

public void convertXML2PDF(File xml,
                           File xslt,
                           File pdf)
                    throws FOrayException
Demonstration of Conversion from XSL to PDF.

Parameters:
xml - The semantic XML input.
xslt - The XSLT stylesheet.
pdf - The PDF output.
Throws:
FOrayException - For errors during FOray processing.

main

public static void main(String[] args)
Command-line interface for this class.

Parameters:
args - The command-line arguments. None are currently supported.


Copyright © 2017. All rights reserved.