当前位置: 首页 > news >正文

seo网站关键词优化排名网络营销推广岗位职责

seo网站关键词优化排名,网络营销推广岗位职责,怀化网站建设怎么收费,微信能否做门户网站一、免费方式 优点#xff1a;1、免费#xff1b;2、在众多免费中挑选出的转换效果相对较好#xff0c;并且不用像openOffice那样安装服务 缺点#xff1a;1、对字体支持没有很好#xff0c;需要安装字体库或者使用宋体#xff08;对宋体支持很好#xff09;2、对于使…一、免费方式 优点1、免费2、在众多免费中挑选出的转换效果相对较好并且不用像openOffice那样安装服务 缺点1、对字体支持没有很好需要安装字体库或者使用宋体对宋体支持很好2、对于使用freeMarker模板转化过来的doc无法读取转换 第一步 dependencygroupIdorg.apache.poi/groupIdartifactIdpoi-ooxml/artifactIdversion3.17/version/dependencydependencygroupIdfr.opensagres.xdocreport/groupIdartifactIdfr.opensagres.poi.xwpf.converter.pdf-gae/artifactIdversion2.0.1/version/dependency 第二步 public static void main(String[] args) throws Exception {FileInputStream fileInputStream new FileInputStream(D:\\test\\研判报告docx.docx);XWPFDocument xwpfDocument new XWPFDocument(fileInputStream); // 将word中字体转化为宋体防止其他字体无法正常显示setFontType(xwpfDocument);FileOutputStream fileOutputStream new FileOutputStream(D:\\test\\研判报告11.docx);PdfConverter.getInstance().convert(xwpfDocument,fileOutputStream,pdfOptions);fileInputStream.close();fileOutputStream.close();}/**** 将文档的文字设置为宋体 防止其他字体转pdf不显示* Description:* param xwpfDocument* return:*/private static void setFontType(XWPFDocument xwpfDocument) {//转换文档中文字字体ListXWPFParagraph paragraphs xwpfDocument.getParagraphs();if(paragraphs ! null paragraphs.size()0){for (XWPFParagraph paragraph : paragraphs) {ListXWPFRun runs paragraph.getRuns();if(runs !null runs.size()0){for (XWPFRun run : runs) {run.setFontFamily(宋体);}}}}//转换表格里的字体 我也不想俄罗斯套娃但是不套真不能设置字体ListXWPFTable tables xwpfDocument.getTables();for (XWPFTable table : tables) {ListXWPFTableRow rows table.getRows();for (XWPFTableRow row : rows) {ListXWPFTableCell tableCells row.getTableCells();for (XWPFTableCell tableCell : tableCells) {ListXWPFParagraph paragraphs1 tableCell.getParagraphs();for (XWPFParagraph xwpfParagraph : paragraphs1) {ListXWPFRun runs xwpfParagraph.getRuns();for (XWPFRun run : runs) {run.setFontFamily(宋体);}}}}}} 二、收费方式 除了收费没啥缺点 1、freemarker生成word模板 ①、自己新建一个word文档内容就按照需要的格式内容 ②、word文档另存为选择xml格式 ③、修改xml后缀为ftl放在如图位置 ④代码 public static void main(String[] args) throws Exception {//1.创建配置类Configuration configurationnew Configuration(Configuration.getVersion());//2.设置模板所在的目录configuration.setDirectoryForTemplateLoading(new File(.\\template));//3.设置字符集configuration.setDefaultEncoding(utf-8);//4.加载模板Template template configuration.getTemplate(研判报告docx.ftl);//5.创建数据模型Map mapnew HashMap();map.put(name,姓名姓名);map.put(idCard,身份证号码);map.put(age,36);map.put(sex,男);MapString, Object data1 new HashMap();data1.put(item,map);Writer out new FileWriter(new File(.\\template\\研判报告docx.docx));//7.输出template.process(data1, out);//8.关闭Writer对象out.close();} 2、word转pdf ①、新建asposeLicense.xml放到如图位置 asposeLicense.xml内容 LicenseDataProductsProductAspose.Total for Java/ProductProductAspose.Words for Java/Product/ProductsEditionTypeEnterprise/EditionTypeSubscriptionExpiry20991231/SubscriptionExpiryLicenseExpiry20991231/LicenseExpirySerialNumber8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7/SerialNumber/DataSignaturesNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppod0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU/Signature /License ②、代码 public static void main(String[] args) {String docPath .\\template\\研判报告docx.docx;String savePath .\\template\\研判报告docx4.pdf;word2pdf(docPath, savePath);}public static void word2pdf(String docPath, String savePath) {try {ClassPathResource resource new ClassPathResource(asposeLicense.xml);InputStream inputStream resource.getInputStream();License license new License();license.setLicense(inputStream);com.aspose.words.Document document new com.aspose.words.Document(docPath);document.save(new FileOutputStream(new File(savePath)), SaveFormat.PDF);} catch (Exception e) {e.printStackTrace();}}
http://www.hkea.cn/news/14428101/

相关文章:

  • 石家庄行业网站网站建设不完整(网站内容太少)
  • 自己做的网页怎么上传网站吗wordpress 系统安装
  • 深圳建设网站的公司哪家好做房地产网站广告销售
  • 做网站须知正规的建网站公司
  • 没有防盗链的网站wordpress通过广告挣钱
  • 继续接入备案 增加网站 区别网站建设相关的
  • 泰兴做网站电话个性化网站建设多少钱
  • 聊城手机网站制作大连 响应式网站
  • 中小型企业网站大全兰州吸引用户的网站设计
  • 品牌策略有哪些软件营销之群排名优化教程
  • 能打开各种网站的搜索引擎东营网站建设报价
  • 镇江建站推广报价浙江省建设注册管理中心网站
  • 福州网站建设找时时在网络品牌建设计划
  • 给孩子做的饭网站电脑版传奇
  • 西安网易网站建设wordpress开发西瓜
  • 北京建站模板展示移动应用开发是做什么的
  • 平面设计师参考网站建设企业网站登录入口
  • 网站 关键词 出现频率网站建设一对一培训班
  • 龙华做网站联系电话小程序源码加密
  • 网站做成小程序一般通过男网友
  • 怎么做网站有利于收录jsp网站设计教学做一体化教程
  • 昌邑微信网站建设公司在天极网做网站有效果吗
  • 出色的网站设计南京网站的优化
  • 完成网站集约化建设wordpress 注册功能
  • 大连哪家公司做网站比较好wordpress 购买会员
  • 商务网站建设期末考试19年做网站
  • 岳阳手机网站制作手机 网站服务器
  • 建网站的步骤采集微信公众号 做网站
  • 网站备案证书怎么下载不了淘宝网的网络营销方式
  • 东山网站建设wordpress最新app