org.foray.demo.embed
Class DemoFO2PDF

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

public class DemoFO2PDF
extends EmbedDemo

This class demonstrates the conversion of an FO file to PDF using FOray.


Constructor Summary
DemoFO2PDF()
           
 
Method Summary
 void convertFO2PDF(URL fo, File pdf)
          Demonstration of a conversion from FO to PDF.
static void main(String[] args)
          Command-line interface to 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

DemoFO2PDF

public DemoFO2PDF()
Method Detail

convertFO2PDF

public void convertFO2PDF(URL fo,
                          File pdf)
                   throws IOException,
                          FOrayException
Demonstration of a conversion from FO to PDF.

Parameters:
fo - The FO file to be converted.
pdf - The output file.
Throws:
IOException - For I/O errors.
FOrayException - For errors during FOray processing.

main

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

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


Copyright © 2017. All rights reserved.