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

  • 大小: 3.72MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-13
  • 語言: 其他
  • 標簽: pdfjs????

資源簡介

pdfjs跨域加載文件預覽。親測可以用。在SSM框架中實現的。但是原理是通用的 詳情查看http://blog.csdn.net/u013132051/article/details/76066920

資源截圖

代碼片段和文件信息

package?tom.change.zxh.controller;

import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;
import?java.util.UUID;

import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.ResponseBody;

import?tom.change.zxh.aspose.ConvertStatus;
import?tom.change.zxh.aspose.WordToPdf;
import?tom.change.zxh.service.UserService;



@Controller
@RequestMapping(value=“login“)
public?class?LoginController
{

????@Autowired
????private?UserService?userService;
????
????@RequestMapping(value=“startLogin“)
????public?String?startLogin(HttpServletRequest?request??HttpServletResponse?response){
????????return?“login“;
????}
????
????@RequestMapping(value=“getParam“)
????@ResponseBody
????public?object?getParam(String?id??HttpServletRequest?request??HttpServletResponse?response){
????????Listject>>?list?=?userService.selectUser();
????????for?(Mapject>?map?:?list)
????????{
????????????System.out.println(map);
????????}
????????Mapject>?result=new?HashMapject>();
????????result.put(“id“?id);
????????return?result;
????}
????
????
????@RequestMapping(value=“addData“)
????@ResponseBody
????public?Integer?addData(){
????????
????????return?userService.addData();
????????
????}
????
????@RequestMapping(value=“office“)
????@ResponseBody
????public?object?office(){
????????Mapject>?result=new?HashMapject>();
????????result.put(“id“?“test“);
????????long?start?=?System.currentTimeMillis();
????????WordToPdf?wordToPdf?=?new?WordToPdf();
????????ConvertStatus?convertStatus?=?null;
????????//?獲取需要轉換文檔的所在路徑
????????String?sourcePath?=?“1.xls“;
????????String?targetPath?=?“1.pdf“;
????????//String?targetPath?=?LoginController.class.getResource(“/“)+“tom/change/zxh/controller/1“+UUID.randomUUID()+“.pdf“;//?PDF保存文件路徑
//????????sourcePath=sourcePath.substring(6);
//????????targetPath=targetPath.substring(6);
????????System.out.println(“path“+“@@“+sourcePath+“@@33@“+targetPath);
??????/*String?sourcePath?=?“D://924_MyEclipseWorkSpace//mybatis//target//test-classes//mybatis//1.xls“;??
????????String?targetPath?=?“D://924_MyEclipseWorkSpace//mybatis//target//test-classes//mybatis//1.pdf“;??*/
????????//?開始轉換
????????convertStatus?=?wordToPdf.etp(sourcePath?targetPath);
????????long?end?=?System.currentTimeMillis();
????????System.out.println(convertStatus);
????????long?time?=?end?-?start;
????????System.out.println(time);
????????result.put(“status“?convertStatus);
????????return?result;
????}
}

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

?????文件??????22016??2017-07-21?15:08??pdfjs跨域加載資料\controller\1.xls

?????文件???????2878??2017-07-21?16:14??pdfjs跨域加載資料\controller\LoginController.java

?????文件????????513??2017-07-25?13:57??pdfjs跨域加載資料\controller\PDFJSController.java

?????文件???????2474??2017-07-25?13:55??pdfjs跨域加載資料\controller\SourceController.java

?????文件?????352428??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\build\pdf.js

?????文件????1458810??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\build\pdf.worker.js

?????文件????2819969??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\a.pdf

?????文件????1016315??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\b.pdf

?????文件??????18126??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\compatibility.js

?????文件??????20069??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\debugger.js

?????文件???????1805??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\demo1.html

?????文件???????1610??2017-07-25?14:19??pdfjs跨域加載資料\pdfjs\web\demo2.html

?????文件????????415??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-check.svg

?????文件????????883??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-comment.svg

?????文件???????2168??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-help.svg

?????文件????????408??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-insert.svg

?????文件???????1452??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-key.svg

?????文件????????426??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-newparagraph.svg

?????文件????????158??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-noicon.svg

?????文件???????1041??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-note.svg

?????文件???????1143??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\annotation-paragraph.svg

?????文件????????199??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-next-rtl.png

?????文件????????304??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-next-rtl@2x.png

?????文件????????193??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-next.png

?????文件????????296??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-next@2x.png

?????文件????????193??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-previous-rtl.png

?????文件????????296??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-previous-rtl@2x.png

?????文件????????199??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-previous.png

?????文件????????304??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\findbarButton-previous@2x.png

?????文件????????326??2017-07-25?09:41??pdfjs跨域加載資料\pdfjs\web\images\grab.cur

............此處省略83個文件信息

評論

共有 條評論