|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.samples.CopyStyles
public class CopyStyles
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 |
|---|
public CopyStyles(java.lang.String xslPath)
throws java.io.IOException
xslPath - The path to the XSL files needed for transforms.
java.io.IOException| Method Detail |
|---|
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
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.
javax.xml.transform.TransformerFactoryConfigurationError
javax.xml.transform.TransformerException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
args - parameters provided by the console application.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||