perlquestion
DaWolf
Greetings, brothers and sisters.
<BR><BR>
I'm with a very complicated problem and I was hoping that Perl can give me a hand.
<BR><BR>
I've seen a lot of nodes about MSWord files, but all of them seem to point to Win32::OLE wich is a great module, but I don't believe will help me, since I need - at least if possible - to do this in a linux server.
<BR><BR>
<readmore>
Here's the scenario:
<BR><BR>
It's basically a file server, wich has to control the documents published on it using a web interface.
<BR><BR>
So, when a user submits a document (tipically a MSWord file), the application needs to append a customized header to this file. Please note that by "header" I mean a MSWord document header, basically a table with some information, company logo, etc...
<BR><BR>
Problem #1: How to manipulate MSWord files without "opening" MSWord via Win32::OLE?
<BR><BR>
Then, when a user clicks on the file link, it should be able to view it in the MSWord-MSIE integrated interface BUT it shouldn't be able to change the file.
<BR><BR>
The only way the user could change the contents of the document is after downloading it. After the changes the user should then re-submit the document to the system, wich will then append a new header to it and so on...
<BR><BR>
Problem #2: How to prevent a MSWord document opened in the MSWord-MSIE integrated interface to be changed?
<BR><BR>
A possible solution to both problems is to convert the contents of the file to another format, like HTML, and let the user view the contents directly in MSIE.
<BR><BR>
The .doc file would only be available for the user via download to make the changes.
<BR><BR>
This solution has a problem, however: the conversion must be perfect.
<BR><BR>
Is there a module that can make a ***decent*** doc -> html conversion? By decent I mean preserving tables, inline images, etc...?
<BR><BR>
As you can see I'm pretty much lost here, so I was hoping that someone could give me some advices/alternatives, etc...
<BR><BR>
TIA,
<BR><BR>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-6035">
<BR><HR style="width: 140px; height: 2px; color: rgb(128, 0, 0);"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Er Galvão Abbott<BR><A HREF="http://www.galvao.eti.br/" target="_blank">www.galvao.eti.br</a><BR><A HREF="http://portoalegre.pm.org/" target="_blank">Porto Alegre Perl Mongers</a></font>
</div></div>
</readmore>