[publican-list] wkhtmltopdf output vs fop output

Erich Steinböck erich.steinboeck at gmail.com
Mon Aug 1 15:48:07 UTC 2016


For our project, until now we used to build all our docs with
Publican/fop.  As Publican has deprecated fop use, I've made a first try
with building one of the docs with the Publican/wkhtmltopdf combo.  We've
never used any project-specifc formatting, neither with fop, nor now with
wkhtmltopdf - I'm just using the defaults.

Generally, the PDF layout which wkhtmltopdf produces, looks nice and clean,
but I'm seeing several major issues versus fop:

The PDF grew from 740 to 901 pages.  I might not really care, but it's
rather obvious to the reader that the TOC is now 30 instead of 11 pages,
because it seems to not only list higher-level headings, but maybe all of
them.  The index grew from 63 pages in two-column layout with page numbers
to 130 pages of a single-column layout list of links (which looks rather
bad).

Each heading shows a leading (invalid) special character in the TOC of the
PDF viewer (Adobe Acrobat Pro DC 2015), something like "OPreface", or
"OChapter 1." (the chapter headings themselves don't show this in the
normal PDF flow)

All links, in addition to their normal blue color, now feature a prominent
blue underline which interrupts the flow of reading.

Examples, which typically are defined with "<example><programlisting><![CDATA[
... ]]></programlisting></example>", now show a proportional font, instead
of a monospaced font.

Embedded .svg's, typically defined with "<mediaobject><imageobject><imagedata
fileref="images/...svg" scale="55" /></imageobject></mediaobject>" are now
scaling to a fixed width, instead of variable width, but scaled to 55% of
their size.

Unchanged to as what fop did, headings, example titles etc. still allow
page breaks between them and any immediately following body text.

Are others also experiencing this?  How can this be fixed?  Are there other
pre-defined layouts hwich might work better?

Thanks .. Erich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/publican-list/attachments/20160801/7f6d8f5f/attachment.htm>


More information about the publican-list mailing list