public static int wps2pdf(String srcPath, String destPath) {
		File file = new File(srcPath);
		if (file.exists()) {
			ComThread.InitMTA();
			ActiveXComponent wps = null;
			try {
				wps = new ActiveXComponent("WPS.Application");
				wps.setProperty("Visible", false);
				Dispatch docs = wps.getProperty("Documents").toDispatch();
				log.info("调用WPS文字打开文档..." + srcPath);
				Dispatch doc = Dispatch.call(docs, "Open",
						new Variant(srcPath), new Variant(false),
						new Variant(true)).toDispatch();

				log.info("转换文档到PDF..." + destPath);
				File toFile = new File(destPath);
				if (toFile.exists()) {
					toFile.delete();
				}
				Dispatch.call(doc, "ExportPdf", new Variant(destPath));
				Dispatch.call(doc, "Close", new Variant(WPSDONOTSAVECHANGES));
				log.info("转换完成");
				return TRANSFERSUCCESS;
			} catch (Exception e) {
				log.info("调用WPS文字转换失败:" + e.getMessage());
			} finally {
				if (wps != null) {
					log.info("退出WPS文字");
					wps.invoke("Quit", new Variant(WPSDONOTSAVECHANGES));
				}
				ComThread.Release();
			}
		}
		log.info("文档不存在...");

		return TRANSFERFAILURE;
	}