public class ScreenShotPhantomjsManagerImpl extends java.lang.Object implements ScreenShotManager, com.seeyon.ctp.common.SystemInitializer
ScreenShotManager.HtmlRenderType, ScreenShotManager.ScreenShotParam
构造器和说明 |
---|
ScreenShotPhantomjsManagerImpl() |
限定符和类型 | 方法和说明 |
---|---|
void |
base64ToPdf(java.lang.String pdfPathName,
java.lang.String base64,
com.seeyon.ctp.common.constants.ApplicationCategoryEnum app)
base64格式图片转换为pdf(不保存数据库)
|
void |
destroy()
销毁接口,将在系统停止时被调用
|
java.lang.String |
htmlToFile(java.lang.String url,
ScreenShotManager.ScreenShotParam paramObj)
对页面进行截图,转换为对应文件
|
com.seeyon.ctp.common.po.filemanager.V3XFile |
htmlToImage(java.lang.String url,
ScreenShotManager.ScreenShotParam paramObj,
com.seeyon.ctp.common.constants.ApplicationCategoryEnum category)
对页面进行截图
|
com.seeyon.ctp.common.po.filemanager.V3XFile |
htmlToPdf(java.lang.String url,
ScreenShotManager.ScreenShotParam paramObj,
com.seeyon.ctp.common.constants.ApplicationCategoryEnum category)
将页面转换为pdf
|
void |
initialize()
初始化接口,将在系统启动时被调用
|
void |
setFileManager(com.seeyon.ctp.common.filemanager.manager.FileManager fileManager) |
public void setFileManager(com.seeyon.ctp.common.filemanager.manager.FileManager fileManager)
public void initialize()
com.seeyon.ctp.common.SystemInitializer
initialize
在接口中 com.seeyon.ctp.common.SystemInitializer
public void destroy()
com.seeyon.ctp.common.SystemInitializer
destroy
在接口中 com.seeyon.ctp.common.SystemInitializer
public void base64ToPdf(java.lang.String pdfPathName, java.lang.String base64, com.seeyon.ctp.common.constants.ApplicationCategoryEnum app) throws com.seeyon.ctp.common.exceptions.BusinessException
ScreenShotManager
base64ToPdf
在接口中 ScreenShotManager
pdfPathName
- pdf的目标保存路径(含pdf文件名),此文件可不创建,方法内帮你创建base64
- base64格式的图片字符串app
- 所属模块com.seeyon.ctp.common.exceptions.BusinessException
public com.seeyon.ctp.common.po.filemanager.V3XFile htmlToImage(java.lang.String url, ScreenShotManager.ScreenShotParam paramObj, com.seeyon.ctp.common.constants.ApplicationCategoryEnum category) throws com.seeyon.ctp.common.exceptions.BusinessException
ScreenShotManager
htmlToImage
在接口中 ScreenShotManager
com.seeyon.ctp.common.exceptions.BusinessException
public com.seeyon.ctp.common.po.filemanager.V3XFile htmlToPdf(java.lang.String url, ScreenShotManager.ScreenShotParam paramObj, com.seeyon.ctp.common.constants.ApplicationCategoryEnum category) throws com.seeyon.ctp.common.exceptions.BusinessException
ScreenShotManager
htmlToPdf
在接口中 ScreenShotManager
com.seeyon.ctp.common.exceptions.BusinessException
public java.lang.String htmlToFile(java.lang.String url, ScreenShotManager.ScreenShotParam paramObj) throws com.seeyon.ctp.common.exceptions.BusinessException
ScreenShotManager
htmlToFile
在接口中 ScreenShotManager
com.seeyon.ctp.common.exceptions.BusinessException