Hello everyone!
I want to covert a docx to a docbook file with --extract-media, so i can upload the pictures automatically into a database.
Is there any "hack" to keep the original filename for the extracted picture's name + imegaobject fileref's value?
For example...
I
have a file what has been pasted into the docx file with this name
-> picture_upload.png. I want to extract into the /media folder as
'picture_upload.png', and set the docbook's imegamedia fileref's value
to 'picture_upload.png' or './media/picture_upload.png'.
In the <file>/word/document.xml there is this block, what contains the original filename:
Its reference is in the <file>/word/_rels/document.
xml:
And the docbook output is:
<imagedata fileref="./media/image110.png" />
The file's name in the './media' folder is the same as the "Target"
value.
Any idea will help :)
Thank you.