public class ImageResolver extends Object implements ITypeResolver
Constructor and Description |
---|
ImageResolver()
|
Modifier and Type | Method and Description |
---|---|
static org.docx4j.wml.R |
createRunWithImage(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage,
byte[] bytes,
String filenameHint,
String altText)
|
org.docx4j.wml.R |
resolve(org.docx4j.openpackaging.packages.WordprocessingMLPackage document,
Object image)
This method is called when a placeholder in the .docx template is
to replaced by the result of an expression that
was found in the .docx template.
|
public org.docx4j.wml.R resolve(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, Object image)
ITypeResolver
resolve
in
interface ITypeResolver
document
- the word document that can be accessed via the DOCX4J
api.
image
- the result of an expression. Only objects of classes this
type resolver is registered for
within the TypeResolverRegistrey are passed into this method.
Copyright © 2016. All rights reserved.