Package com.flowable.template.engine.cfg
Class AsposeTemplateProcessorSettings
java.lang.Object
com.flowable.template.engine.cfg.AsposeTemplateProcessorSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanBy default, missing members in expressions (e.g.protected booleanBy default, syntax errors in the template will lead to an exception being thrown.protected StringIf set, force a specific compliance level when generating PDFs.protected booleanBy default, expressions resolving to empty paragraphs are not removed.protected booleanIf set, after evaluating a Word template the fields of the document are updated.protected booleanThe Aspose Words Reporting engine uses optimizations for invocations of custom type members performed via reflection API are optimized using dynamic class generation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanvoidsetAllowMissingMembers(boolean allowMissingMembers) voidsetInlineErrors(boolean inlineErrors) voidsetOutputPdfComplianceLevel(String outputPdfComplianceLevel) voidsetRemoveEmptyParagraphs(boolean removeEmptyParagraphs) voidsetUpdateDynamicFieldsBeforeSave(boolean updateDynamicFieldsBeforeSave) voidsetUseReflectionOptimization(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)
-