91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

本資源包括word模板、aspose-words相關jar包、poi相關jar包,及java類,該類引入工程,導入jar包即可運行。警告:請勿用于商業用途,僅供學習研究,如有任何版權糾紛,本人概不負責!

資源截圖

代碼片段和文件信息

package?com.springboot.demo.springBootDemo.controller;

import?java.awt.Color;
import?java.awt.Graphics2D;


import?java.awt.image.BufferedImage;
import?java.io.ByteArrayInputStream;
import?java.io.ByteArrayOutputStream;
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileNotFoundException;
import?java.io.IOException;
import?java.io.InputStream;
import?java.io.OutputStream;
import?java.util.ArrayList;
import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;


import?javax.imageio.ImageIO;
import?javax.imageio.stream.ImageInputStream;
import?javax.servlet.http.HttpServletResponse;

import?org.apache.poi.hwpf.HWPFDocument;
import?org.apache.poi.hwpf.usermodel.Range;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RequestMethod;
import?org.springframework.web.bind.annotation.RestController;


import?com.aspose.words.Document;
import?com.aspose.words.ImageSaveOptions;

import?com.aspose.words.SaveFormat;
//import?com.springboot.demo.springBootComm.util.UuidUtil;
//import?com.springboot.demo.springBootServer.service.SayHelloService;

import?sun.misc.base64Encoder;





@RestController
@RequestMapping(value=“/say“)
public?class?SayHelloController?{
// @Autowired
// public?UuidUtil?uuidUtil;
// @Autowired
// public?SayHelloService?sayHelloService;
// @RequestMapping(value=“/hello“?method=?RequestMethod.GET)
// ???public?String?hello()?{
// ??????System.out.println(sayHelloService.sayHello()+“hello...........“+uuidUtil.getUuid());
// ??
// ??????return?sayHelloService.sayHello()+“hello“+uuidUtil.getUuid();
// ???}

@RequestMapping(value=“/hello1“?method=?RequestMethod.GET)
?public?String?hello1()?throws?Exception?{
File?fis=new?File(“D:\\b.doc“);
????????InputStream?in?=?null;
??????
????????????in?=?new?FileInputStream(fis);??
????????????HWPFDocument?hdt?=?new?HWPFDocument(in);
????????????Range?range?=?hdt.getRange();

????????????Map?params?=?new?HashMap();
????????????params.put(“${cargo1}“??“你好11111“);
????????????params.put(“${cargo2}“??“你好22222“);
????????????params.put(“${cargo3}“??“你好33333“);
????????????params.put(“${cargo4}“??“你好4“);
????????????params.put(“${cargo5}“??“你好55555“);
????????????params.put(“${cargo6}“??“你好66666“);
????????????params.put(“${cargo7}“?“你好77“);
???????????
????????????//params.put(“${note}“??dto.get(“note“)==null?““:dto.get(“note“).toString());
????????????//把word中包含params?key的內容轉換成value的內容
????????????for?(Map.Entry?entry:params.entrySet())?{
????????????????range.replaceText(entry.getKey()entry.getValue());
????????????}
????????????ByteArrayOutputStream?ostream?=?new?ByteArrayOutputStream();
????????????hdt.write(ostream);//數據寫入到輸出流??
????????????InputStream?inputStream?=?new?ByteArrayInputStream(ostream.toByteA

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????2220320??2019-04-15?15:23??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\aspose-words-16.7.0-javadoc.jar

?????文件???11195368??2019-04-15?15:18??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\aspose-words-16.7.0-jdk16.jar

?????文件??????24064??2019-04-16?15:15??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\b.doc

?????文件????1869113??2019-02-22?10:43??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\poi-3.9.jar

?????文件?????936648??2019-02-22?10:43??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\poi-ooxml-3.9.jar

?????文件????1226511??2019-04-16?13:16??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\poi-scratchpad-3.9.jar

?????文件???????9041??2019-04-16?15:47??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺\SayHelloController.java

?????目錄??????????0??2019-04-17?10:51??通過java后臺代碼實現修改word內容,同時以圖片流形式返回給前臺

-----------?---------??----------?-----??----

?????????????17481065????????????????????8


評論

共有 條評論