用JS生成专业的公文文档

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<!DOCTYPE html>
<html>
  <head> 
    <meta charset="UTF-8">
    <script type="text/javascript" src="http://myxdoc.sohuapps.com/xdoc.js"></script> 
  </head>  
  <body> 
    <input type="button" onclick="gen()" value="生成公文"/>
    <br/>
	<script type="text/javascript">
	function gen() {
		var params = {
			"份号": "1",
			"密级": "秘密",
			"保密期限": "一年",
			"紧急程度": "特急",
			"发文机关": "XDOC智能云文档平台",
			"机关代字": "农",
			"年份": "2015",
			"发文顺序号": "1",
			"标题": "关于XDOC智能云文档支持标准公文的通知",
			"正文": "  XDOC公文模板严格遵循GB/9704-2012《党政机关公文格式》。部署在XDOC云服务器是上,免费提供给大家使用。\n"
				+ "  http://myxdoc.sohuapps.com",
			"发文机关署名": "XDOC办公室",
			"成文日期": "2015-01-01",
			"印章": "http://www.nhzx.org/2008/NewsFile/daa1cd1be41148eea1c69bb19b71b1a0/35d35feabbf943f087ad130055044de8.002.png",
			"抄送机关": "XDOC老用户、新用户、爱好者。",
			"印发机关": "XDOC办公室",
			"印发日期": "2015-01-01",
			"附注": ""
		};
		XDoc.run("./10001.xdoc", "pdf", params, "_blank");
	}
	</script>
  </body> 
</html>