public static int et2pdf(String srcPath, String destPath) {
		File file = new File(srcPath);
		if (file.exists()) {
			ComThread.InitMTA();
			ActiveXComponent et = null;
			try {
				et = new ActiveXComponent("ET.Application");
				et.setProperty("Visible", false);
				Dispatch workbooks = et.getProperty("Workbooks").toDispatch();
				log.info("调用WPS表格打开文档..." + srcPath);
				Dispatch workbook = Dispatch.call(workbooks, "Open",
						new Variant(srcPath)).toDispatch();

				log.info("转换文档到PDF..." + destPath);
				File toFile = new File(destPath);
				if (toFile.exists()) {
					toFile.delete();
				}
				Dispatch.call(workbook, "ExportPdf", new Variant(destPath));
				Dispatch.call(workbook, "Close",
						new Variant(ETDONOTSAVECHANGES));
				log.info("转换完成");
				return TRANSFERSUCCESS;
			} catch (Exception e) {
				log.info("调用WPS表格转换失败:" + e.getMessage());
			} finally {
				if (et != null) {
					log.info("退出WPS表格");
					et.invoke("Quit");
				}

				ComThread.Release();
			}
		}
		log.info("文档不存在...");
		return TRANSFERFAILURE;
	}