Fetch the repository succeeded.
This action will force synchronization from 太原扁舟科技/WDA文件在线预览, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#WDA 最新加入了zip和rar文件的预览功能
WdaAppInter personService = (WdaAppInter) Naming.lookup("rmi://127.0.0.1:8888/wda");
personService.generateDoc("1234", new File("D:\\doc\\1.docx"));
/**
* 开始生产WEB文档
*
* @param key
* 文档关键字,后续通过它调用相关资源
* @param file
* 原文件
* @param htmlinfo
* 被显示的html信息(如文件名称等)
* @throws ErrorTypeException
* @throws RemoteException
*/
public void generateDoc(String key, File file, String htmlinfo) throws ErrorTypeException, RemoteException;
/**
* 开始生产WEB文档
*
* @param key
* 文档关键字,后续通过它调用相关资源
* @param file
* 原文件
* @param fileTypeName
* 扩展名
* @param htmlinfo
* 被显示的html信息(如文件名称等)
* @throws ErrorTypeException
* @throws RemoteException
*/
public void generateDoc(String key, File file, String fileTypeName, String htmlinfo)
throws ErrorTypeException, RemoteException;
/**
* 获得可以被转换的文件类型
*
* @return
*/
public Set<String> getSupportTypes() throws RemoteException;
/**
* 文档是否已经生成完毕
*
* @param key
* @return
* @throws ErrorTypeException
*/
public boolean isGenerated(String key, String doctype) throws ErrorTypeException, RemoteException;
/**
* 文档是否有日志记录
*
* @param key
* @return
* @throws ErrorTypeException
*/
public boolean isLoged(String key) throws RemoteException;
/**
* 删除日志(通过日志判断是否生成过文档时,可以通过此方法重新生成文档)
*
* @param key
* @return
* @throws ErrorTypeException
*/
public void delLog(String key) throws RemoteException;
/**
* 获得日志地址
*
* @param key
* @return
*/
public String getlogURL(String key) throws RemoteException;
/**
* 获得文档文本字符串
*
* @param key
* @return
* @throws ErrorTypeException
*/
public String getText(String key) throws ErrorTypeException, RemoteException;
/**
* 获得文档信息字符串
*
* @param key
* @return
* @throws ErrorTypeException
*/
public String getInfo(String key) throws ErrorTypeException, RemoteException;
/**
* 获得在线文档浏览的URL
*
* @param key
* @param exname
* @return
* @throws ErrorTypeException
*/
public String getUrl(String key, String docType) throws ErrorTypeException, RemoteException;
演示地址:http://www.wcpdoc.com/webdoc/view/Pub8a2831b35138cc1f015139118bc30002.html
在wcp中集成了wda的功能,通过wcp的连接展示wda系统
如图,点击预览后进入wda系统
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。