jkeenan1 has asked for the wisdom of the Perl Monks concerning the following question:

I have a program called multipandoc which takes as input a plain-text file in Perl's Plain Old Documentation (.pod) format and converts it simultaneously into .txt, .html, .pdf and .odt formats. The program is a wrapper around the Pod::Pandoc module from CPAN.

If I wish to embed an image in the .html version of the output, I know that I can say:

=begin html <img src="file:///tmp/images/sector-balances-over-time-sum-to-zero.jpe +g"> =end html

Does anyone know what the equivalent argument would be for embedding a locally stored image in OpenOffice/LibreOffice output? That is, I would like to say something like:

=begin odt [PATH TO IMAGE] =end odt
However, I can't find any documentation that tells me what to put between the =begin and =end tags. Thank you very much.
Jim Keenan

Replies are listed 'Best First'.
Re: Embed image in .pod for output in .odt
by Corion (Pope) on Nov 02, 2020 at 15:36 UTC

    Since .odt files are "merely" zip files containing XML, I would manually embed an image there and then observe the difference in the XML. I presume that it will be some base64-encoded stream.

Re: Embed image in .pod for output in .odt
by perlfan (Vicar) on Nov 02, 2020 at 16:27 UTC