Skip to content

Writing original image path and name in DOCX files #9900

Answered by iandol
ptram asked this question in Q&A
Discussion options

You must be logged in to vote

Please see #9815 — ODT files can easily preserve the images as links rather than embeds, in fact the opendocument writer that ODT is based on always links images. It should be possible to use opendocument to ODT and have properly linked images. #9815 shows the XML code is simple and so a filter could inject linked figures into ODT directly as a second option. ODT can be converted to DOCX if you must use DOCX.

As you mentioned, DOCX's OpenXML uses a much more complex markup for linked images that depends on a separate file, this is more challenging to solve with a filter for DOCX output directly. I imagine this requires direct support from the DOCX writer in Pandoc...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ptram
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ptram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants