資源簡介
aspose-cell for java 18.9破解版,該資源僅用作學習交流使用,請勿用作商業用途,如有需要請購買正版。

代碼片段和文件信息
package?com.demo;
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileOutputStream;
import?java.io.InputStream;
import?com.aspose.cells.License;
import?com.aspose.cells.SaveFormat;
import?com.aspose.cells.Workbook;
/**
?*?aspose?for?pdf
?*?
?*?
?*?最新完美破解版,無水印無文件大小限制,無使用時間限制
?*?由于aspose比較吃內存,操作大一點的文件就會堆溢出,所以請先設置好java虛擬機參數:-Xms1024m?-Xmx1024m(參考值)
?*?如果親們在使用過程中有任何問題,請在CSDN下載界面留言,或者聯系QQ群931233662詢問
?*?本人親自破解,內含Eclipse工程,直接導入Eclipse就能運行該demo
?*?
?*?適用于jdk6.0的環境,免費使用!
?*?
?*?======警告:請勿用于商業用途,僅供學習研究使用,如有任何版權糾紛,本人概不負責!=====
?*?
?*?@author?Aspose
?*
?*/
public?class?TestCells?{
private?static?InputStream?license;
private?static?InputStream?fileInput;
private?static?File?outputFile;
/**
?*?獲取license
?*?
?*?@return
?*/
public?static?boolean?getLicense()?{
boolean?result?=?false;
try?{
ClassLoader?loader?=?Thread.currentThread().getContextClassLoader();
license?=?new?FileInputStream(loader.getResource(“license.xml“).getPath());//?憑證文件
fileInput?=?new?FileInputStream(loader.getResource(“test.xlsx“).getPath());//?待處理的文件
outputFile?=?new?File(“D:/test.pdf“);//?輸出路徑
License?aposeLic?=?new?License();
aposeLic.setLicense(license);
result?=?true;
}?catch?(Exception?e)?{
e.printStackTrace();
}
return?result;
}
/**
?*?
?*?@param?args
?*/
public?static?void?main(String[]?args)?{
//?驗證License
if?(!getLicense())?{
return;
}
try?{
long?old?=?System.currentTimeMillis();
Workbook?wb?=?new?Workbook(fileInput);
FileOutputStream?fileOS?=?new?FileOutputStream(outputFile);
wb.save(fileOS?SaveFormat.PDF);
long?now?=?System.currentTimeMillis();
System.out.println(“共耗時:“?+?((now?-?old)?/?1000.0)?+?“秒\n\n“?+?“文件保存在:“?+?outputFile.getPath());
}?catch?(Exception?e)?{
e.printStackTrace();
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????410??2018-10-13?17:31??AsposeCells\.classpath
?????文件????????387??2015-09-08?12:45??AsposeCells\.project
?????文件?????????57??2015-10-23?09:57??AsposeCells\.settings\org.eclipse.core.resources.prefs
?????文件????????598??2015-09-08?12:45??AsposeCells\.settings\org.eclipse.jdt.core.prefs
?????文件???????2299??2018-11-22?18:11??AsposeCells\bin\com\demo\TestCells.class
?????文件????????536??2018-10-13?16:52??AsposeCells\bin\license.xm
?????文件?????182486??2015-10-23?09:47??AsposeCells\bin\test.xlsx
?????文件????6663081??2018-10-13?17:38??AsposeCells\lib\aspose-cells-18.9.jar
?????文件????????536??2018-10-13?16:52??AsposeCells\source\license.xm
?????文件?????182486??2015-10-23?09:47??AsposeCells\source\test.xlsx
?????文件???????2291??2018-11-22?18:11??AsposeCells\src\com\demo\TestCells.java
?????目錄??????????0??2018-11-22?18:10??AsposeCells\bin\com\aspose\cells
?????目錄??????????0??2018-10-13?17:40??AsposeCells\src\com\aspose\cells
?????目錄??????????0??2018-11-22?18:10??AsposeCells\bin\com\aspose
?????目錄??????????0??2018-11-22?18:10??AsposeCells\bin\com\demo
?????目錄??????????0??2018-10-13?17:35??AsposeCells\src\com\aspose
?????目錄??????????0??2018-07-17?21:07??AsposeCells\src\com\demo
?????目錄??????????0??2018-11-22?18:10??AsposeCells\bin\com
?????目錄??????????0??2018-10-13?17:35??AsposeCells\src\com
?????目錄??????????0??2018-07-17?21:07??AsposeCells\.settings
?????目錄??????????0??2018-11-22?18:10??AsposeCells\bin
?????目錄??????????0??2018-10-13?17:38??AsposeCells\lib
?????目錄??????????0??2018-11-22?18:09??AsposeCells\source
?????目錄??????????0??2018-10-13?17:35??AsposeCells\src
?????目錄??????????0??2018-07-17?21:07??AsposeCells
-----------?---------??----------?-----??----
??????????????7035167????????????????????25
- 上一篇:ssm醫院血庫管理系統畢業設計程序
- 下一篇:華中科技大學計算機組成原理實驗.zip
評論
共有 條評論