final Uri uri = Uri.fromFile(file);
final Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "application/vnd.ms-powerpoint");
PackageManager pm = getPackageManager();
List<ResolveInfo> list = pm.queryIntentActivities(intent, 0);
if(list.size() > 0)
sta
我已经阅读并试用了的教程来阅读办公文档并在cfm页面中显示。由于本教程是在几年前完成的,它只能读取doc、ppt和xls,而不是新的docx、pptx、xlsx。我怎么才能成功地读取这些文件?重命名文件扩展名不适用于Apache。
我的代码:
<!--- where the poi files are --->
<cfset jarpath = expandPath("./jars")>
<cfset paths = []>
<cfdirectory action="list" name="files"
点进教程中的网址之后,按照该教程所示进入下载界面,点击download按钮无法下载驱动,而是跳转到如下界面:
https://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/384.66/NVIDIA-Linux-x86_64-384.66.run&lang=us&type=Tesla
在GPU实例中,输入教程所示的命令也无法下载:
* Socket connection established *
Last login: Thu May 17
我使用unoconv将不同的文件格式转换为pdf。它在我的本地机器上对所有格式都工作得很好。但是在我的ubuntu12.04服务器上,unoconv无法处理一些格式,比如xls,ppt,pptx等等,但是对于文档文件,它工作得很好。它显示以下ppt转换错误。
$unoconv -f pdf Googling.ppt
unoconv: UnoException during conversion in <class '__main__.com.sun.star.lang.IllegalArgumentException'>: Unsupported URL <
我读过其他关于升级unoconv的文章。
当我试图使用命令将PPT转换为PDF时,会出现以下错误
unoconv -f pdf hold.ppt
unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL <file:///var/www/hold.ppt>: ""
我的版本是:
unoconv 0.6
Written by Dag Wieers <dag@wieers.com>
Homepage at http://dag.wieers