Package com.flowable.template.engine.cfg
Class AsposeTemplateProcessorSettings
java.lang.Object
com.flowable.template.engine.cfg.AsposeTemplateProcessorSettings
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
By default, missing members in expressions (e.g.protected boolean
By default, syntax errors in the template will lead to an exception being thrown.protected String
If set, force a specific compliance level when generating PDFs.protected boolean
By default, expressions resolving to empty paragraphs are not removed.protected boolean
If set, after evaluating a Word template the fields of the document are updated.protected boolean
The Aspose Words Reporting engine uses optimizations for invocations of custom type members performed via reflection API are optimized using dynamic class generation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
void
setAllowMissingMembers
(boolean allowMissingMembers) void
setInlineErrors
(boolean inlineErrors) void
setOutputPdfComplianceLevel
(String outputPdfComplianceLevel) void
setRemoveEmptyParagraphs
(boolean removeEmptyParagraphs) void
setUpdateDynamicFieldsBeforeSave
(boolean updateDynamicFieldsBeforeSave) void
setUseReflectionOptimization
(boolean useReflectionOptimization)
-
Field Details
-
allowMissingMembers
protected boolean allowMissingMembersBy default, missing members in expressions (e.g. [name.something]) will throw an exception. When this property is set to true, no exception is thrown, but the expression will resolve to null (i.e. no value is written). -
inlineErrors
protected boolean inlineErrorsBy default, syntax errors in the template will lead to an exception being thrown. When this property is set to true, no exception is thrown, and the place where the error is happening is shown in the generated template. Note that will show syntax errors only, not expression evaluations problems. -
removeEmptyParagraphs
protected boolean removeEmptyParagraphsBy default, expressions resolving to empty paragraphs are not removed. When this property is set to true, empty paragraphs will be removed from the final document. -
useReflectionOptimization
protected boolean useReflectionOptimizationThe Aspose Words Reporting engine uses optimizations for invocations of custom type members performed via reflection API are optimized using dynamic class generation. This flag disables this optimization because it doesn't work properly on all Java versions, e.g. Java 17. -
outputPdfComplianceLevel
If set, force a specific compliance level when generating PDFs. The strings are determined by Aspose, currently the following set of value is supported:- PDF_17
- PDF_15
- PDF_A_1_A
- PDF_A_1_B
-
updateDynamicFieldsBeforeSave
protected boolean updateDynamicFieldsBeforeSaveIf set, after evaluating a Word template the fields of the document are updated. This can be used to force the reevaluation of table of contents and other dynamic value fields, see https://docs.aspose.com/words/java/update-field/
-
-
Constructor Details
-
AsposeTemplateProcessorSettings
public AsposeTemplateProcessorSettings()
-
-
Method Details
-
isUpdateDynamicFieldsBeforeSave
public boolean isUpdateDynamicFieldsBeforeSave() -
setUpdateDynamicFieldsBeforeSave
public void setUpdateDynamicFieldsBeforeSave(boolean updateDynamicFieldsBeforeSave) -
getOutputPdfComplianceLevel
-
setOutputPdfComplianceLevel
-
isAllowMissingMembers
public boolean isAllowMissingMembers() -
setAllowMissingMembers
public void setAllowMissingMembers(boolean allowMissingMembers) -
isInlineErrors
public boolean isInlineErrors() -
setInlineErrors
public void setInlineErrors(boolean inlineErrors) -
isRemoveEmptyParagraphs
public boolean isRemoveEmptyParagraphs() -
setRemoveEmptyParagraphs
public void setRemoveEmptyParagraphs(boolean removeEmptyParagraphs) -
isUseReflectionOptimization
public boolean isUseReflectionOptimization() -
setUseReflectionOptimization
public void setUseReflectionOptimization(boolean useReflectionOptimization)
-