public static int dps2pdf(String srcPath, String destPath) {
		File file = new File(srcPath);
		if (file.exists()) {
			ComThread.InitMTA();
			ActiveXComponent dps = null;
			try {
				dps = new ActiveXComponent("WPP.Application");
				Dispatch presentations = dps.getProperty("Presentations")
						.toDispatch();

				log.info("使用WPS演示打开文档..." + srcPath);
				Dispatch presentation = Dispatch.call(presentations, "Open",
						new Variant(srcPath), new Variant(null),
						new Variant(DPSREADONLYMODE)).toDispatch();

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

		return TRANSFERFAILURE;
	}