Skip navigation links
oracle.apps.xdo.template.pdf.book
Class OutlineProcessor
java.lang.Object
org.xml.sax.HandlerBase
oracle.apps.xdo.template.pdf.book.OutlineProcessor
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
-
public class OutlineProcessor
- extends org.xml.sax.HandlerBase
OutlineProcessor is a tool used to create PDF style bookmarks (outlines) to a PDF document.
Usage:
java oracle.apps.template.pdf.book.OutlineProcessor <input xml> <input pdf> <output pdf>
<input xml>: Filename of input xml file containing outline XML structure
<input pdf>: Filename of input pdf file
<output pdf>: Filename of output pdf file
Method Summary |
void |
characters(char[] ch, int start, int length)
Do not call this method! |
void |
endElement(java.lang.String name)
Do not call this method! |
static void |
main(java.lang.String[] args)
|
void |
process()
|
void |
setMergeBookmarks(boolean flag)
|
void |
setPDFInput(java.io.InputStream pdfInput)
|
void |
setPDFOutput(java.io.OutputStream pdfOutput)
|
void |
setPDFParser(PDFParser pdfParser)
|
void |
setXMLInput(java.io.InputStream xmlInput)
|
void |
startElement(java.lang.String name, org.xml.sax.AttributeList attributes)
Do not call this method! |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCS_ID
public static final java.lang.String RCS_ID
-
- See Also:
- Constant Field Values
RCS_ID_RECORDED
public static final boolean RCS_ID_RECORDED
OutlineProcessor
public OutlineProcessor()
OutlineProcessor
public OutlineProcessor(java.io.InputStream xmlInput,
java.io.InputStream pdfInput,
java.io.OutputStream pdfOutput)
OutlineProcessor
public OutlineProcessor(PDFParser pdfParser,
java.io.InputStream xmlInput)
setXMLInput
public void setXMLInput(java.io.InputStream xmlInput)
setPDFInput
public void setPDFInput(java.io.InputStream pdfInput)
setPDFOutput
public void setPDFOutput(java.io.OutputStream pdfOutput)
setPDFParser
public void setPDFParser(PDFParser pdfParser)
setMergeBookmarks
public void setMergeBookmarks(boolean flag)
process
public void process()
throws java.lang.Exception
-
- Throws:
java.lang.Exception
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
throws org.xml.sax.SAXException
- Do not call this method!
-
- Specified by:
startElement
in interface org.xml.sax.DocumentHandler
- Overrides:
startElement
in class org.xml.sax.HandlerBase
-
- Parameters:
name
-
attributes
-
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
- Do not call this method!
-
- Specified by:
endElement
in interface org.xml.sax.DocumentHandler
- Overrides:
endElement
in class org.xml.sax.HandlerBase
-
- Parameters:
name
-
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Do not call this method!
-
- Specified by:
characters
in interface org.xml.sax.DocumentHandler
- Overrides:
characters
in class org.xml.sax.HandlerBase
-
- Parameters:
ch
-
start
-
length
-
- Throws:
org.xml.sax.SAXException
main
public static void main(java.lang.String[] args)
Skip navigation links
© 2004, 2005, 2006, 2007, Oracle. All rights reserved.