- 浏览: 303351 次
- 性别:
- 来自: 成都
文章分类
- 全部博客 (118)
- VS2008 (2)
- JAVA (34)
- AJAX (1)
- C# (1)
- Flex (16)
- FMS (6)
- SQLSERVER (1)
- ORACLE (1)
- Quartz (1)
- struts2 (1)
- java数据结构 (1)
- java设计模式 (3)
- JSF (0)
- web (2)
- jbpm4 (4)
- J2EE (1)
- webservice (2)
- javascript (8)
- spring (3)
- lucene (0)
- linux (9)
- ibatis (1)
- JPA (2)
- 外挂 (0)
- VB (0)
- Hibernate (1)
- OSGI (8)
- EXT (4)
- Maven (1)
- SpringSecurity (0)
- activiti (0)
- 项目开发 (0)
- 项目管理 (7)
- android (0)
- FFMPEG (1)
- C (2)
- eclipse (1)
最新评论
-
默默得守候在你的身边:
给力
java与Delphi写的dll交互 -
默默得守候在你的身边:
java与Delphi写的dll交互 -
fuguitong:
[url][url][url][url][url][url][ ...
doc转swf -
baidu_25402161:
到结束的时候一直 Can't delete processIn ...
一个请假单流程的实现(struts2.1.8+spring2.5+hibernate3集成jbpm4.3) -
lohaoo1:
nice!
java面包屑导航制作
将doc转换成swf,然后显示在html页面上。
package org.forever.util; import java.io.File; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; public class FlashPaperUtil { private static final String UNINSTALL_BAT = "uninstall.bat"; private static final String INSTALL_BAT = "install.bat"; private static Logger log = Logger.getLogger(FlashPaperUtil.class); private static final String CMD_C_START = "cmd /c start "; private static final String FLASH_PRINTER_EXE = "FlashPrinter.exe"; private static final String FLASH_PAPER2_2 = "FlashPaper2.2"; private static final String SPACE = " "; private static String flashPaperDir; private static String flashPrinterPath; private static String installPath; private static String unInstallPath; private static Runtime runtime = Runtime.getRuntime(); private static Map<String, String> fileMap = new HashMap<String, String>(); private static FlashPaperUtil instance; private FlashPaperUtil(){ flashPaperDir = FlashPaperUtil.class.getClassLoader().getResource( FLASH_PAPER2_2).getFile(); for (File file : new File(flashPaperDir).listFiles()) { fileMap.put(file.getName(), file.getAbsolutePath()); } flashPrinterPath = fileMap.get(FLASH_PRINTER_EXE); installPath = fileMap.get(INSTALL_BAT); unInstallPath = fileMap.get(UNINSTALL_BAT); } public static FlashPaperUtil getInstance(){ if(null == instance){ synchronized (FlashPaperUtil.class) { instance = new FlashPaperUtil(); } } return instance; } public void docToSwf(String docPath, String outPath) throws Exception { String command = flashPrinterPath + SPACE + docPath + SPACE + "-o" + SPACE + outPath; Process process = runtime.exec(command); process.waitFor(); process.destroy(); File outFile = new File(outPath); if(outFile.exists()){ log.info("docToSwf success........."); } } public void install() throws Exception { String cmd = CMD_C_START + installPath; Process process = runtime.exec(cmd,null,new File(flashPaperDir)); process.waitFor(); process.destroy(); log.info("install success.........."); } public void uninstall() throws Exception { String cmd = CMD_C_START + unInstallPath; Process process = runtime.exec(cmd,null,new File(flashPaperDir)); process.waitFor(); process.destroy(); log.info("uninstall success.........."); } public static void main(String[] args) throws Exception { FlashPaperUtil.getInstance(); } }
该工具不适用于64
如果要用64的,使用print2Flash,掉用命令:
p2Server.exe F:\abc.doc F:\abc.swf /createlogfile:on /logfilename:F:\doc2swf.log
或者p2Server.exe F:\abc.doc F:\abc.swf
评论
6 楼
fuguitong
2016-07-05
[url][url][url][url][url][url][url][url][url][url][url][url][url][url][img][img][img][img][list]
[*]
[/list] [/img][/img][/img][/img][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url]
[*]
引用
[/list] [/img][/img][/img][/img][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url][/url]
5 楼
SoarDing
2012-07-09
请问楼主,老是报空指针怎么处理。
java.lang.NullPointerException
at org.forever.util.FlashPaperUtil.<init>(FlashPaperUtil.java:31)
at org.forever.util.FlashPaperUtil.getInstance(FlashPaperUtil.java:42)
java.lang.NullPointerException
at org.forever.util.FlashPaperUtil.<init>(FlashPaperUtil.java:31)
at org.forever.util.FlashPaperUtil.getInstance(FlashPaperUtil.java:42)
4 楼
antony102201
2011-12-28
想请教一下LZ这个DefaultViewer2.swf是转换过后,打开的样式,那这个可不可以改啊,我不想要打印按钮,多一个可以旋转按钮。
3 楼
antony102201
2011-12-28
我把p2fServer.exe这个文件拷贝进去,把private static final String FLASH_PRINTER_EXE = "FlashPrinter.exe"; 改成了
private static final String FLASH_PRINTER_EXE = "p2fServer.exe";
这个,可以运行不起来了
我安装的是Print2Flash3
private static final String FLASH_PRINTER_EXE = "p2fServer.exe";
这个,可以运行不起来了
我安装的是Print2Flash3
2 楼
antony102201
2011-12-28
如果要用64的,使用print2Flash,掉用命令:
p2Server.exe F:\abc.doc F:\abc.swf /createlogfile:on /logfilename:F:\doc2swf.log
或者p2Server.exe F:\abc.doc F:\abc.swf
请问楼主
这个64是什么意思啊
还有我使用print2Flash,到底怎么使用啊,调用命令是怎么调用的啊,刚搞这个东西,不太懂
p2Server.exe F:\abc.doc F:\abc.swf /createlogfile:on /logfilename:F:\doc2swf.log
或者p2Server.exe F:\abc.doc F:\abc.swf
请问楼主
这个64是什么意思啊
还有我使用print2Flash,到底怎么使用啊,调用命令是怎么调用的啊,刚搞这个东西,不太懂
1 楼
sam_kee
2010-12-08
楼主厉害啊!
发表评论
-
OSGI学习
2012-03-18 18:01 0http://www.blogjava.net/zhenyu3 ... -
OSGI学习笔记(七)
2012-03-17 23:58 1654SpringDM初步使用(二) 介绍哈官方的第二个例子 ... -
ubuntu10.04下nexus和maven的安装及配置
2012-03-14 16:14 2466前提要有jdk环境,官方下载nexus和maven,解压后创建 ... -
ubuntu10.04下eclipse的安装及配置
2012-03-14 00:01 1267从官方http://www.eclipse.org/downl ... -
Ubuntu10.04下配置java环境变量
2012-03-13 23:28 1028Ubuntu10.04默认安装了OpenJDK,但还是基于Su ... -
eclipse设置保护色
2012-03-16 09:22 9372eclipse操作界面默认颜色为白色。对于我们长期使 ... -
OSGI学习笔记(六)
2012-03-17 15:08 2721SpringDM初步使用(一) 官方地址http:// ... -
OSGI学习笔记(八)
2012-03-19 21:08 2256SpringDM初步使用(三) spring第三个例子 ... -
OSGI学习笔记(五)
2011-07-31 10:32 1553开放服务网关协议 (Open Services Gateway ... -
osgi学习笔记(三)
2011-07-16 22:43 1913OSGI实战书上讲了一个web登陆验证切换功能。表达了osgi ... -
word工具类
2011-03-15 09:19 1402package org.foreverframework ... -
命令模式--撤销恢复
2011-03-14 22:32 4930该例子来自阎宏提供的 ... -
java zip
2011-03-06 15:32 1171import java.io.BufferedInputStr ... -
javamail简单使用
2010-11-15 08:29 2291MailInfo类: //发送邮件的信息类 public ... -
xloadtree的一个改造
2010-09-20 22:58 2529修改了xloadtree的部分源码以适合自己使用。 1.修改 ... -
java与Delphi写的dll交互
2010-09-05 22:27 6090有时候在项目开发的时候难免会和硬件提供的开发包接触,这些开发接 ... -
JAVA与DLL交互
2010-08-27 23:32 1895jna官网地址:https://jna.dev.java.ne ... -
office工具类
2010-07-31 14:17 2275将jcom.dll放入jdk的bin目录下,将jcom.jar ... -
启动多个tomcat
2010-04-22 09:13 1167想启动多个tomcat,只需修改conf/server.xml ... -
dos 删除指定日期前的文件
2010-04-19 22:47 3407@echo off&setlocal enablede ...
相关推荐
很好用的转换工具,doc转swf之首选。请放心使用
doc转换为swf的工具
FlashPaper2.2 doc2pdf doc2swf office2swf office2pdf word文档转换成swf,PDF格式 如获珍宝
pdf转swf,epup,text,image,html,doc等 各种转换
OpenOffice 实现JPG.DOC转PDF转SWF在线预览(Java版),如果有问题可以联系我
doc pdf转换成swf java语言
格式转换__txt,doc,JPG等转为SWF或pdf转Flash
您或者知道把doc加密,或者转换成pdf再加密,虽有一定的保护效果,但还是很容易破解!您肯定想到过,要是转换成swf就好了,思路很好,flashpaper就可以帮你做到! 安装后,会显示在office菜单栏的“加载项”里,点击...
本FlashPaper无打印按钮,但保留的最大化按钮。只要替换C:\Program Files\Macromedia\FlashPaper 2\Interface文件夹下的DefaultViewer2.swf文件即可!
Flashpaper的使用相信大多数人都知道,这里的Demo是用于在线转换 .doc文件转换为 .swf的flash文件。 其原理是通过进程指令对文件进行转换,所以会涉及到进程的操作, 而 doc转换为swf文件的指令则是: ...
一个小模块,在asp.net中把doc ppt jpg pdf等转换为swf 并在页面上显示
可以将doc,xls,ppt三个文件传成swf或者pdf文件 1 :先 打开“初始化”文件夹,打开 Get Flash Player 那个网页链接 安装 Flash Player(需要连接互联网下载) 2 :运行 初始化.bat 那个 文件 3:运行FlashPrinter....
仿百度文库 仿豆丁文库 doc格式转换成swf格式 在网页中加载swf格式文件 有不会用的加我qq 312958778
word转pdf转swf,用户上传word后调用服务把word转为pdf,同时把pdf转为swf文件。
本软件可将doc文件转化为PDF文档,也可以转化为SWF文档,便于上传,保存.
文件转换类、doc、docx、ppt、pptx转pdf 转swf
doc装换为pdf、swf等格式代码,不需要安装office。
WIN7、XP、2003测试没问题! 使用MFC编写。 采用FlashPaper进行转换。本人自愿下有FlashPaper自愿,带有FlashPaper驱动,注册机,汉化工具,使用说明。 安全可靠!!!
如果要转换pdf文件,则必须先安装 Adobe Reader。如果是转换office,则必须先安装 Office 。...1: doc 转 swf 2: docx 转 swf 3: xls 转 swf 4: xlsx 转 swf 5: ppt 转 swf 6: pptx 转 swf 7: pdf 转 swf
PPT转SWF绿色汉化版,简单、实用,绿软pptflash汉化版 当我们用PowerPoint精心设计了一个展示企业产品的演示文稿时,却很可能遇到在别人的电脑上不能播放的问题,原因只是因为他的电脑中没有安装PowerPoint。是否有...