Hi
Running OpenOffice.org2.4
OS is Linux details are
bash-3.00$ more /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
bash-3.00$ uname -sar
Linux bfs-hs20-05s5.bfs.phone.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
bash-3.00$
So Im working on using OpenOffice(OO) to convert certain document types to HTML. A Java servlet connects to an OO server over TCP and sends the document to be converted, which is then converted and written to disk. This works well. A basic prototype is up and working.
The problem is when a Microsoft word document that contains images is converted to HTML using OO. The generated HTMl file contains IMG tags as expected (see below) however the SRC (path) attribute of the image files is incorrect. It is specified always as "../<imagename>.jpg" instead of "./<imagename>.jpg". The extra leading "." means its trying to locate the images in the parent directory when they are in the same directory as the htnl file itself i.e. this current directory. If I manually amen IMG SRC values to removed leading "." the HTML renders correctly in the browser.
<IMG SRC="../doc2html1131_html_7491bb26.jpg" NAME="graphics1" ALIGN=BOTTOM WIDTH=813 HEIGHT=1367 BORDER=0>
Any ideas on what the problem is?
I have started the server on the command line using the following
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
The actual tarball I downloaded from OpenOffice site is OOo_2.4.0_LinuxIntel_install_wJRE_en-US.tar.
Thanks
Invalid Html IMG tags when converting MS word documents
Re: Invalid Html IMG tags when converting MS word documents
1. Upgrade to OOo 2.4.1, 3.0.0, or later
2. If the problem persists, report as a bug to Issue Tracker at http://qa.openoffice.org .
2. If the problem persists, report as a bug to Issue Tracker at http://qa.openoffice.org .
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP