ODT export: add embedded pdf support

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 27 June 2016 05:39 UTC

Once a .pdf file is inserted in Writer using Insert -> Image, Writer now advertises a replacement metafile for it (to make LO <= 5.2 and other ODF readers still be able to read the graphic, where the replacement is the same as the original metafile, but without .pdf data), and the ODF export writes the .pdf data with the correct extension / mime type.

Also extend the checksum logic to take care of the pdf data, so on export xmloff won't think that the full and the replacement graphic are the same.

The import side is still missing, so no testcase yet.

Change-Id: I5c5b7c80ca4024ecbcb5b2d4442d21ca33755546 Reviewed-on: https://gerrit.libreoffice.org/26695

fda6842 ODT export: add embedded pdf support
svx/source/xml/xmlgrhlp.cxx | 2 ++
sw/source/core/graphic/ndgrf.cxx | 3 +++
vcl/source/gdi/impgraph.cxx | 4 ++++
3 files changed, 9 insertions(+)

Upstream: cgit.freedesktop.org


  • Share