Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 341 by
yynora...@gmail.com: docx->xhtml, is there any good way to
locate the image?
http://code.google.com/p/xdocreport/issues/detail?id=341
What steps will reproduce the problem?
1.I used the sample supplied with "docxandfreemarker-1.0.3-sample.zip" to
produce a docx with some images.
2.I downloaded the "docx.converters-1.0.3-sample.zip" and created a java
project to run the sample.
3.When I tried to convert the docx file to xhtml, I found that the images
didn't show up in the htm file.
What is the expected output? What do you see instead?
The reason for the image not showing is that the html can not locate them.
I noticed that the uri of the images changed to something
like "file:///home/user/workspace/XdocReport/temp/word/media/xdocreport_0.jpg".
As you can see the image name had nothing to do with the bookmark name
which I set in the docx template before. They were just named in the
way "xdocreport_N.jpg" one after another, where the "N" stood for an
increasing number starting from "0". And the "XHTMLOptions" was not quite
useful. When I set it with the value "temp", the image searching path would
be "projectRootPath/temp/word/media". Don't you think it's very
inconvenient? Why not just use the image bookmark name as the html image
name and set the path with the option value without the
additional "word/media" subdirectory? I looked up through the whole
existing issues but still didn't figure it out. Did I miss something? What
I need is just a good way to locate the html image. Right now I have to
change all the names of the images that I used and put them in
the "xxx/word/media" directory which makes me feel awful.
What version of the product are you using? On what operating system?
The version of the product is 1.0.3.
ubuntu 12.04 64bit jre 1.6
Please provide any additional information below.
I do not want to give up xdocreport, because I find it's really faster than
dox4j or something else. You all really did a good job. I'm trying to help
it become more better.
Regards
yy
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings