here is a very simple script to run openoffice headless.
it works on a debian sarge, you have to do this before :
# apt-get update && apt-get install xvfb
(continue reading…)
Archive for 三月, 2011
using openoffice headless ( macro, shell, php )
merge PPT by openoffice
below the only solution I can imagine for Impress slides. Maybe somebody else can come up with something simplier … seems OO API is quite complex here.
PowerPoint 2007 VBA bugs/problems
There’s an awful lot of unfinished business that we hope will be addressed in service packs, but for now, PowerPoint 2007 and VBA aren’t very well assembled.
The Object Browser shows you quite a bit of mouth-watering stuff, but way too much of it seems to be methods and properties of objects that you’re given no way of accessing. And there are bugs. Oh my, are there bugs.
Linux VBA
there are a few ways, so we will focus on one at a time
(continue reading…)
PHP PowerPoint 2007
Project providing a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like PowerPoint 2007, … This project is built around Microsoft’s OpenXML standard and PHP.
Checkout the Features this class set provides, such as setting presentation meta data (author, title, description, …), adding slides, adding images to your presentation and much, much more!
Want to bookmark this page? Please use http://www.phppowerpoint.net as the URL.
Initial version developed by Maarten Balliauw, RealDolmen.
http://phppowerpoint.codeplex.com
Python模块zipfile
Python ZipFile模块用来做zip格式编码的压缩和解压缩的,由于是很常见的zip格式,所以这个模块使用频率也是比较高的,在这里对ZipFile的使用方法做一些记录。即方便自己也方便别人。
ZipFile里有两个非常重要的class, 分别是ZipFile和ZipInfo, 在绝大多数的情况下,我们只需要使用这两个class就可以了。ZipFile是主要的类,用来创建和读取zip文件而ZipInfo是存储的zip文件的每个文件的信息的。 (continue reading…)
开启Nginx的目录文件列表功能
打开nginx.conf文件,在location server 或 http段中加入
autoindex on; (continue reading…)