com.adobe.idml.samples
Class Notes

java.lang.Object
  extended by com.adobe.idml.samples.Notes

public class Notes
extends java.lang.Object

This class contains tools for removing and extracting notes from an IDML package.


Constructor Summary
Notes()
          The default constructor.
Notes(java.lang.String xslPath)
          This constructor sets up an XSL Locator object.
 
Method Summary
 void extractNotes(java.lang.String idmlSource, java.lang.String outputFile)
          Copies notes from an IDML file to a separate text file.
static void main(java.lang.String[] args)
          The main method used to initialize the Notes class.
 void removeNotes(java.lang.String idmlSource, java.lang.String outputFile)
          Creates a copy of an IDML file with the notes removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notes

public Notes()
The default constructor.


Notes

public Notes(java.lang.String xslPath)
      throws java.io.IOException
This constructor sets up an XSL Locator object.

Parameters:
xslPath - The path to the XSL files needed for transforms.
Throws:
java.io.IOException
Method Detail

extractNotes

public void extractNotes(java.lang.String idmlSource,
                         java.lang.String outputFile)
                  throws PackageException,
                         java.io.IOException,
                         javax.xml.xpath.XPathExpressionException
Copies notes from an IDML file to a separate text file.

Parameters:
idmlSource - The IDML file to extract notes from.
outputFile - The location to write the output file containing notes to.
Throws:
PackageException
java.io.IOException
javax.xml.xpath.XPathExpressionException

removeNotes

public void removeNotes(java.lang.String idmlSource,
                        java.lang.String outputFile)
                 throws java.io.IOException,
                        javax.xml.transform.TransformerFactoryConfigurationError,
                        javax.xml.transform.TransformerException
Creates a copy of an IDML file with the notes removed.

Parameters:
idmlSource - The IDML file to remove notes from.
outputFile - The IDML copy of idmlSource with the notes removed.
Throws:
java.io.IOException
javax.xml.transform.TransformerFactoryConfigurationError
javax.xml.transform.TransformerException

main

public static void main(java.lang.String[] args)
The main method used to initialize the Notes class.

Parameters:
args - parameters provided by the console application.


Copyright © 2008 Adobe Systems Incorporated. All Rights Reserved.