This project is built on Java 8 and apache maven 3.3.9
This project is totally inspired by http://www.cnblogs.com/luckyxiaoxuan/archive/2012/06/15/2550303.html. Thanks so much to the author.
- Convert txt/word/ppt/excel to pdf base on Microsoft Office/LibreOffice.
- Convert pdf to swf base on SWFTools.
Couple things below should be known if you run the test method via JacobPDFConverter.
-
Microsoft office should be installed on your computer.
-
SWFTools should be installed on your computer. You can modify the path to adapt to your environment in Test class.
-
jacob-1.18-x86.dll
orjacob-1.18-x64.dll
should be added to system path(eg.C:\Windows\System32
).
Also if you run the test method via JodPDFconverter, these things should be done at first:
-
LibreOffice should be installed on your computer.
-
Same as last chapter
-
If the converting is invoked on linux OS, X Window is needed. It was always failing unless I do
sudo apt-get install ubuntu-desktop
.