EPUB export, fixed layout: switch to a metafile-based approach

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 4 December 2017 08:06 EST

Trying to guess layout from flat ODF output is an approach that doesn't scale, think of complex documents with split tables, etc.

Do it similar to the PDF export instead: take a metafile of each page and use the existing SVG writer to embed it into XHTML.

Change-Id: I6e860834beb8025519d3e367f858077ae9e9c006 Reviewed-on: https://gerrit.libreoffice.org/45647

3ed8466b55ac EPUB export, fixed layout: switch to a metafile-based approach
external/libepubgen/libepubgen-epub3.patch.1 | 25 +++++
writerperfect/Library_wpftwriter.mk | 1 +
writerperfect/qa/unit/EPUBExportTest.cxx | 17 ++++
.../qa/unit/data/writer/epubexport/fxl-2page.fodt | 71 ++++++++++++++
writerperfect/source/writer/EPUBExportFilter.cxx | 49 +++++++++-
writerperfect/source/writer/EPUBExportFilter.hxx | 7 ++
writerperfect/source/writer/exp/xmlimp.cxx | 106 +++++++++++++++++----
writerperfect/source/writer/exp/xmlimp.hxx | 7 +-
8 files changed, 264 insertions(+), 19 deletions(-)

Upstream: cgit.freedesktop.org


  • Share