[PHP] PHP MS-Word plugin
Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each page, but doing it online, without having to download the document, watermarking it, and then reuploading it (I won't deny that I'm lazy). So my question is has this even been done before? I've had a little search around and nothing exciting has popped out, so I'm wondering if anyone has used/heard of/made something as daunting as this before? Thanks in advance, DT
Re: [PHP] PHP MS-Word plugin
Douglas Temple schreef: Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each page, but doing it online, without having to download the document, watermarking it, and then reuploading it (I won't deny that I'm lazy). So my question is has this even been done before? I've had a little search around and nothing exciting has popped out, so I'm wondering if anyone has used/heard of/made something as daunting as this before? this comes down to using the COM extension - creating an instance of Word and using that to edit a file. this assumes the server is running windows and has a copy of Word installed. of course Word document is a vague entity - there are many different versions and they are not all compatible, from what I read I gather that the latest SP for the latest version actually made all documents written in previous versions unreadable because they are deemed 'unsafe' by M$ (this can be fixed with a registry hack) ... actually the parser for previous versions is unsafe ... maybe M$ should have fixed that instead of making everyone's archive of word docs unreadable. that said I have no idea if there are any *nix based word doc manipulators, if there are they probably won't work with all versions of word documents - the file format is closed and changes from version to version. you might consider switching to PDF? alternatively look at writing a batch processing script that runs on a windows server that can interact with the app on the server you alude to in your question. Thanks in advance, DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP MS-Word plugin
Jochem Maas wrote: that said I have no idea if there are any *nix based word doc manipulators, if there are they probably won't work with all versions of word documents - the file format is closed and changes from version to version. OpenOffice.org (the website is the same as the name) is pretty good at the basic manipulation of most word documents. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and Word...
I need to use PHP to pull the first page from a Word Document and then print it to the screen. It doesnt have to be fancy, so even if just the text is pulled that would be fine (although formatting would be grand too). Anyone got any ideas? I cant use the COM object since Im running this on a linux machine, and I have limited access to installation of 3rd party software because I am using shared hosting. Classes would rock, or anything really. I was thinking about converting it to text somehow, and then just pulling the first 50 lines or so - but I dont know how to convert it to text... What do you all think? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Word...
On Sun, 2004-02-15 at 18:28, Russell P Jones wrote: I need to use PHP to pull the first page from a Word Document and then print it to the screen. It doesnt have to be fancy, so even if just the text is pulled that would be fine (although formatting would be grand too). [snip] I was thinking about converting it to text somehow, and then just pulling the first 50 lines or so - but I dont know how to convert it to text... Here is a snippet of sample code I have that uses wvWare[1] to display a Word doc. You should be able to pass it through shell_exec[2]. It is not perfect but does a decent job of keeping formatting. passthru(WV_HTML_PATH . ' ' . FILES_HOME_DIR . $file . ' -'); [1] http://wvware.sourceforge.net/ [2] http://us4.php.net/shell_exec -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php Oracle Word object
Hi, i want to display a blob column, that contain a word object. My database is Oracle Ver 8.1.7. Php version is 4.2.3 How can i do this? Thanks for your help. Alper.
Re: [PHP] Php Oracle Word object
SELECT it out, send Word headers with header() and echo your data. ---John Holmes... - Original Message - From: M.ALPER KARASAHIN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 8:53 AM Subject: [PHP] Php Oracle Word object Hi, i want to display a blob column, that contain a word object. My database is Oracle Ver 8.1.7. Php version is 4.2.3 How can i do this? Thanks for your help. Alper. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php