public static int doc2pdf(String srcPath, String destPath) {
		File file = new File(srcPath);
		if (file.exists()) {
			ComThread.InitMTA();
			ActiveXComponent word = null;
			try {
				word = new ActiveXComponent("Word.Application");
				word.setProperty("Visible", false);
				word.setProperty("DisplayAlerts", DISPLAYALERTS);

				Dispatch docs = word.getProperty("Documents").toDispatch();

				log.info("使用MS Word打开文档..." + srcPath);
				Dispatch doc = Dispatch.call(docs, "Open", srcPath, true, true)
						.toDispatch();

				Dispatch activeWindow = Dispatch.get(doc, "ActiveWindow")
						.toDispatch();
				Dispatch view = Dispatch.get(activeWindow, "View").toDispatch();
				Dispatch.put(view, "ShowRevisionsAndComments", false);
				Dispatch.put(view, "RevisionsView", new Variant(
						WDREVISIONSVIEWFINAL));

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

		return TRANSFERFAILURE;
	}