Page 1 of 1

RIF-XHTML-OBJECT to docx

PostPosted: Mon Oct 28, 2013 11:27 pm
by Nadeo
Hi,

i use docx4j in my project for an Export from RIF-xml to docx. RIF is an Export format from IBM Rational DOORS 9.3 and is used for exchange Project Requirements between different Persons or Companys. All parts work fine, only the OLE(?)-objects make problems.

I try since 3 Weeks to implement a solution, without any result.

Here is an Example of my "shortened" RIF file with only the OLE objects. in this case three 1x1pixel large PNGs in the Colours black,red,white.

pngUndCoShort.xml
Example RIF file with 3 PNGs inside
(13.36 KiB) Downloaded 386 times

red.png
the red PNG
red.png (180 Bytes) Viewed 1772 times

black.png
the black PNG
black.png (180 Bytes) Viewed 1772 times

white.png
the white PNG
white.png (180 Bytes) Viewed 1772 times


What I now is the following:
  • The Data part is coded Base64
  • If I save the data part after encoding as *.bin and than open it with 7zip, I receive 4 files who I don't now what to do with.

I have tried to Receive informations from IBM and from the Stackoverflow Community. no one no something.

is there any solution to insert directly an OLE? Or to Extract the pngs from my binary code and then to insert it in my docx Code ?

Thank you for any help, a desperate student

P.S.: Sorry for my bad English. I am still learning it.

----
The Links from my Stackoverflow Thread:
http://stackoverflow.com/questions/19489572/extract-an-file-from-an-ole-object-which-is-in-an-rif-xml

Re: RIF-XHTML-OBJECT to docx

PostPosted: Tue Oct 29, 2013 8:00 am
by jason
If you can extract the images, it is trivial to insert them in a docx.

Adding an OLE object is more challenging though. For this reason, Plutext offers a commercial OLE Helper. Please contact me by email off forum if you'd like to discuss further.

Re: RIF-XHTML-OBJECT to docx

PostPosted: Tue Oct 29, 2013 8:36 pm
by Nadeo
Thx for your answer.

jason wrote:If you can extract the images, it is trivial to insert them in a docx.


i don't can extract them. that's exactly my problem.

can the OLE-Helper extract files from an exsisting ole or only convert files into ole format?