Constructor and Description |
---|
DocumentManager() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convert(DMSDocForm document,
java.lang.String targetExtension)
converts a document between different formats
|
static byte[] |
convert(java.io.InputStream document,
java.lang.String sourceExtension,
java.lang.String targetExtension)
converts a document between different formats
|
static byte[] |
mixin(DMSDocForm template,
ActivityInstance pi)
fill in the given template
|
static byte[] |
mixin(DMSDocForm template,
DMSForm form)
fill in the given template
|
static byte[] |
mixin(DMSDocForm template,
java.util.Map<java.lang.String,?> context)
fill in the given template
|
static byte[] |
mixin(java.io.InputStream template,
ActivityInstance ai)
fill in the given template
|
static byte[] |
mixin(java.io.InputStream template,
DMSForm form)
fill in the given template
|
static byte[] |
mixin(java.io.InputStream template,
java.util.Map<java.lang.String,?> context)
fill in the given template
|
static byte[] |
mixin(java.io.InputStream template,
org.jaxen.VariableContext ctx)
performs the substitutions using the given
VariableContext |
public static byte[] convert(DMSDocForm document, java.lang.String targetExtension)
document
- the document to converttargetExtension
- the target-extensionpublic static byte[] convert(java.io.InputStream document, java.lang.String sourceExtension, java.lang.String targetExtension)
document
- the document to convertsourceExtension
- the input-document's extension (e.g.: odt, doc)targetExtension
- the target document'ts extension (e.g.: pdf, doc)public static byte[] mixin(DMSDocForm template, ActivityInstance pi)
template
- the template. has to be an odt filepi
- the process-context for the xpath evaluationspublic static byte[] mixin(DMSDocForm template, DMSForm form)
template
- the template. has to be an odt fileform
- the form context for the xpath evaluations. the form may be accessed using the $form
variable in xpathpublic static byte[] mixin(DMSDocForm template, java.util.Map<java.lang.String,?> context)
template
- the template. has to be an odt filecontext
- see: mixin(InputStream, Map)
public static byte[] mixin(java.io.InputStream template, ActivityInstance ai)
template
- the template. has to be an odt fileai
- the workflow-context used for xpath evaluation. see WfVariableContext
for a list of available xpath-variablespublic static byte[] mixin(java.io.InputStream template, DMSForm form)
template
- the template. has to be an odt fileform
- the form-context for xpath evaluation. the form may be accessed using the $form
variable in xpathpublic static byte[] mixin(java.io.InputStream template, java.util.Map<java.lang.String,?> context)
template
- the templatecontext
- the context for the xpath evaluations.
public static byte[] mixin(java.io.InputStream template, org.jaxen.VariableContext ctx)
VariableContext
template
- ctx
- @enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.