Guys, Is there any update regarding prefix the image names or change it somehow? Thanks, Daniel On Wednesday, November 25, 2015 at 7:52:52 AM UTC-2, RĂ³bert Nagy wrote: > > 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 /word/document.xml there is this block, what contains the > original filename: > > > > > > > > > > > > ... > > > Its reference is in the /word/_rels/document.xml: > Target="media/image110.png"/> > And the docbook output is: > > > The file's name in the './media' folder is the same as the "Target" value. > > Any idea will help :) > Thank you. > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/396dae4f-6e94-4eff-9c5b-a99f303961f9%40googlegroups.com.