解决思路是:
1、先将word生成pdf,这个采用openoffice或者jacob
2、然后将pdf生成图片
具体代码如下:
private void officeToPdf(){
OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
try {
connection.connect();...
分类:
编程语言 时间:
2014-09-24 14:41:27
阅读次数:
1455
执行过程public void method(Action action){ //2.method执行中 try { action(); //3.调用委托 string x = "5"; //如果action执行时出现了error,但是内部有catch机...
分类:
其他好文 时间:
2014-09-24 13:10:46
阅读次数:
155
javax.imageio 类 ImageIOBufferedImage bi = ImageIO.read(resFile);//resFile --- InputStreamif(bi == null){ System.out.println(此文件不为图片文件);} try {//判断是...
分类:
编程语言 时间:
2014-09-24 01:47:35
阅读次数:
354
Python读写文件1.open使用open打开文件后一定要记得调用文件对象的close()方法。比如可以用try/finally语句来确保最后能关闭文件。file_object = open('thefile.txt')try: all_the_text = file_object.read( )...
分类:
编程语言 时间:
2014-09-23 19:51:55
阅读次数:
315
internalvoidRenameWithoutValidation(stringvalue){if(value==null)thrownewArgumentNullException("value");this.m_Name=value.Trim();try{this.m_SkipPersist...
分类:
其他好文 时间:
2014-09-23 19:35:25
阅读次数:
164
1 protected void runTest() throws Throwable { 2 3 try { 4 BaiduLocation bl = new BaiduLocation(); 5 bl.gpsx = 120;//经度 6 ...
分类:
其他好文 时间:
2014-09-23 18:24:35
阅读次数:
241
public String read(String fileName) { String reultString = ""; try { InputStream in = getResources().getAssets().open(fileName); int available =...
分类:
其他好文 时间:
2014-09-23 14:55:05
阅读次数:
191
public static MvcHtmlString Try( this HtmlHelper htmlHelper, Expression> expression){ var builder = new TagBuilder("textarea"); builder.A...
分类:
Web程序 时间:
2014-09-23 02:55:13
阅读次数:
255
/*** * 判断应用当前是否前台运行 * * @return */ public static boolean isTopRun(Context context) { Boolean isTopRun = false; try {...
分类:
移动开发 时间:
2014-09-22 23:38:53
阅读次数:
350
import com.android.internal.telephony.ITelephony;import android.os.ServiceManager; private boolean phoneIsInUse() { boolean phoneInUse = false; try { ...
分类:
其他好文 时间:
2014-09-22 16:53:42
阅读次数:
165