https://bugs.documentfoundation.org/show_bug.cgi?id=88941

--- Comment #37 from Ben McGinnes <[email protected]> ---
Two work-arounds for this ...

First, the easy and obvious one, which we all no doubt already use: keep a copy
of 4.3.x handy for exporting to PDF.

Advantage: the output is always what we expect.

Disadvantages: it's a 650MB work-around which needs to be installed somewhere,
ideally in a location that won't conflict with 4.4 and may have unintended
consequences when accessing user profiles, especially if both are open or
active at the same time.

Second, the more fiddly one, which takes a lot of trial and error to get right:
it is possible to convert to PDF via Pandoc and LaTeX in a form closer to what
was intended.

Requirements: Pandoc (available from pandoc.org), latexdiff (available from
macports.org or tug.org), latexmk (available from macports.org or tug.org),
texlive-latex (available from macports.org or tug.org), texlive-latex-extra
(available from macports.org or tug.org), texlive-latex-recommended (available
from macports.org or tug.org).  Alternatively the much smaller BasicTeX package
(available from tug.org) can be substituted for a full installation, but it may
require additional work to support all available fonts.

Method: save ODF as Microsoft .docx, edit as necessary (at minimum remove
footers and page numbering) and then in the Terminal run (in the directory
where the file is):

pandoc -f docx -t latex -o file.pdf file.docx

Note: that images are not included, points and bullets lose their content and
tables take a bit of fiddling to word wrap correctly (may require faking it
with multiple table rows and hiding the borders).  The output will always look
like a LaTeX document, noticably different from LibreOffice and other PDFs. 
Page numbering is automatic by default with numbers in the centre at the bottom
of the page.  Also note that the best results with pandoc were achieved with
Microsoft's docx format, both Docbook and HTML conversions resulted in
extremely annoying editing challenges before producing the PDF (though a
preliminary run using HTML could produce a LaTeX file with the relevant code to
insert images to be pasted into another LaTeX conversion from a .docx file).

Advantages: Does not require two versions of LibreOffice, avoids user profile
conflicts, saves space from second copy of LibreOffice (if BasicTex used or if
LaTeX was installed anyway).

Disadvantages: LaTeX tools and libraries take more space than a second copy of
LibreOffice (unless BasicTex is used), requires additional editing specific to
producing the PDF, loses pictures (can be restored by exporting to LaTeX .tex
first and editing the LaTeX code manually or with a LaTeX editor).

Recommendation: If you don't use LaTeX for anything else already and/or have no
familiarity with it, do not use this workaround.  If you have used LaTeX and
are cautious with available disk space, try the BasicTex variant of this
work-around.  If you are more familiar with LaTeX then you might consider this
work-around.

So, which do I use?  Both, with a full LaTeX installation, it depends on the
target audience of whatever the document is.  If I don't use LaTeX I have to
shutdown LibreOffice 4.4 before launching 4.3.  I've got 4.3.7.2 installed in
/Applications/ and 4.4.3.2 installed in $HOME/Applications/ (to apply the
language pack I copied the pack's bzipped tarball from the installer into
$HOME/Applications/LibreOffice.app/ and extracted it via the Terminal).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to