com.adobe.idml.samples
Class CopyStyles

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

public class CopyStyles
extends java.lang.Object

This class can be used to copy styles of any type (Object, Paragraph, Character and so on) from one IDML Package or another.


Constructor Summary
CopyStyles(java.lang.String xslPath)
          This constructor sets up an XSL Locator object.
 
Method Summary
 void copy(java.lang.String idmlFrom, java.lang.String idmlTo, java.lang.String idmlOut)
          Creates a new IDML file by copying styles from a source IDML file to a destination IDML.
static void main(java.lang.String[] args)
          The main method used to initialize the CopyStyles class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyStyles

public CopyStyles(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

copy

public void copy(java.lang.String idmlFrom,
                 java.lang.String idmlTo,
                 java.lang.String idmlOut)
          throws javax.xml.transform.TransformerFactoryConfigurationError,
                 javax.xml.transform.TransformerException,
                 java.io.IOException
Creates a new IDML file by copying styles from a source IDML file to a destination IDML. The final IDML file contains the styles of the source file and everything else from the destination file.

Parameters:
idmlFrom - The IDML source file containing the styles to be copied.
idmlTo - The IDML destination file which will be copied to have the styles applied to it.
idmlOut - The new IDML file containing the a copy of the idmlTo file with the idmlFrom styles applied to it.
Throws:
javax.xml.transform.TransformerFactoryConfigurationError
javax.xml.transform.TransformerException
java.io.IOException

main

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

Parameters:
args - parameters provided by the console application.


Copyright © 2008 Adobe Systems Incorporated. All Rights Reserved.