fr.opensagres.xdocreport.document.docx.preprocessor.sax.rels
Class DocxDocumentXMLRelsPreprocessor
java.lang.Object
fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor<InputStream>
fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
fr.opensagres.xdocreport.document.docx.preprocessor.sax.rels.DocxDocumentXMLRelsPreprocessor
- All Implemented Interfaces:
- IXDocPreprocessor
public class DocxDocumentXMLRelsPreprocessor
- extends SAXXDocPreprocessor
This processor modify the XML entry word/_rels/document.xml.rels to add Relationship for dynamic image and hyperlink
:
to add template engine script like this for Freemarker :
[#if imageRegistry??]
[#list imageRegistry.imageProviderInfos as ___info]
[/#list]
[/#if]
* to add template engine script like this for Velocity :
#if( $imageRegistry)
#foreach( $___info in $imageRegistry.ImageProviderInfos)
#end
#end
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IXDocPreprocessor INSTANCE
DocxDocumentXMLRelsPreprocessor
public DocxDocumentXMLRelsPreprocessor()
createBufferedDocumentContentHandler
protected BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formater,
Map<String,Object> context)
- Specified by:
createBufferedDocumentContentHandler
in class SAXXDocPreprocessor
Copyright © 2013. All rights reserved.