Class PdfHandler
java.lang.Object
com.sankcrm.erp.contract.infrastructure.template.file.PdfHandler
- All Implemented Interfaces:
FileHandler<com.sankcrm.erp.contract.application.command.PdfFileVo>
@Component
public class PdfHandler
extends Object
implements FileHandler<com.sankcrm.erp.contract.application.command.PdfFileVo>
Html处理器
- Since:
- 1.4.0
- Author:
- zhsxin
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sankcrm.erp.contract.infrastructure.template.file.FileHandler
FileHandler.Utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.contract.domain.model.FileTypefileType()文件类型padding(Path path, com.sankcrm.erp.contract.application.command.PdfFileVo file, Map<String, Object> params, List<SignatoryBo> signatories) 填充模板saveTemplate(Path filePath, com.sankcrm.erp.contract.application.command.PdfFileVo file) 保存文件
-
Constructor Details
-
PdfHandler
public PdfHandler()
-
-
Method Details
-
fileType
public com.sankcrm.erp.contract.domain.model.FileType fileType()Description copied from interface:FileHandler文件类型- Specified by:
fileTypein interfaceFileHandler<com.sankcrm.erp.contract.application.command.PdfFileVo>- Returns:
- 文件类型
-
saveTemplate
public Path saveTemplate(Path filePath, com.sankcrm.erp.contract.application.command.PdfFileVo file) Description copied from interface:FileHandler保存文件- Specified by:
saveTemplatein interfaceFileHandler<com.sankcrm.erp.contract.application.command.PdfFileVo>- Parameters:
file- 文件内容- Returns:
- 文件路径
-
padding
public List<SignatoryBo> padding(Path path, com.sankcrm.erp.contract.application.command.PdfFileVo file, Map<String, Object> params, List<SignatoryBo> signatories) Description copied from interface:FileHandler填充模板- Specified by:
paddingin interfaceFileHandler<com.sankcrm.erp.contract.application.command.PdfFileVo>- Parameters:
path- 保存路径file- 文件params- 参数signatories- 签约人信息
-