GetTemplateProcessor
GetTemplateProcessor(MemoryStream, Encoding, FormValidationLogic)
创建 TemplateProcessor 实例,以便使用指定的模板。
public TemplateProcessor GetTemplateProcessor(MemoryStream templateContent, Encoding textEncoding,
FormValidationLogic logic = FormValidationLogic.Ignore)
| 参数 | Type | 描述 |
|---|---|---|
| templateContent | MemoryStream | 包含模板文本内容的内存流 |
| textEncoding | 编码 | 模板内容编码 |
| logic | FormValidationLogic | 枚举,用于在模板验证规则之一被破坏时控制行为 |
返回值
该 TemplateProcessor 实例
另请参阅
- class TemplateProcessor
- enum FormValidationLogic
- class OmrEngine
- namespace Aspose.OMR.Api
- assembly Aspose.OMR
GetTemplateProcessor(string, FormValidationLogic)
创建 TemplateProcessor 实例,以便使用指定的模板。
public TemplateProcessor GetTemplateProcessor(string templatePath,
FormValidationLogic logic = FormValidationLogic.Ignore)
| 参数 | Type | 描述 |
|---|---|---|
| templatePath | String | OMR 模板文件的路径 |
| logic | FormValidationLogic | 枚举,用于在模板验证规则之一被破坏时控制行为 |
返回值
该 TemplateProcessor 实例
异常
| 异常 | 条件 |
|---|---|
| FileNotFoundException | 如果 templatePath 未指向现有文件 |
另请参阅
- class TemplateProcessor
- enum FormValidationLogic
- class OmrEngine
- namespace Aspose.OMR.Api
- assembly Aspose.OMR