Bug 874344 - RFE -- expose the cover option for wkhtmltopdf
Summary: RFE -- expose the cover option for wkhtmltopdf
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 3.1
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-08 00:45 UTC by Ruediger Landmann
Modified: 2013-02-06 03:40 UTC (History)
3 users (show)

Fixed In Version: 3.1.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-06 03:40:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Ruediger Landmann 2012-11-08 00:45:37 UTC
Description of problem:
wkhtmltopdf supports setting covers for PDF output; could we please get this supported at both the book- and brand- level? 

Version-Release number of selected component (if applicable):
3.0

Additional info:
We might want the PDF cover to match the EPUB cover by default; but maybe have this configurable if folks want different covers for the different formats?

There's an example of cover use here: http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf_0.10.0_rc2-doc.html

Comment 1 Jeff Fearn 🐞 2013-01-09 06:50:51 UTC
This fix has been committed to the devel branch for inclusion in Publican 3.1.

Currently it uses the epub "front-large" image from the Book_Info file. The PUG has this set-up so it's easy to test.

Brands will be able to override the layout by overriding the css styles added to the bottom of common.css.

The default style is fairly bad so we'll need to harass someone with style skills :)

Comment 3 Ruediger Landmann 2013-01-10 23:11:34 UTC
Verified that cover generation works in publican-3.0.0-0.fc17.t18.noarch, with a couple of glitches:

1. Cover content seems to be spread over two pages

2. Page numbering should exclude the cover itself

Comment 4 Ruediger Landmann 2013-01-11 01:09:08 UTC
Also, can we get the header.html and footer.html exposed so that brands can customise this too please?

Comment 5 Ruediger Landmann 2013-01-11 05:40:22 UTC
Works nicely in publican-3.0.0-0.fc17.t37.noarch -- thanks! :)

Comment 6 Jeff Fearn 🐞 2013-01-11 05:50:19 UTC
1. The extra page is recto/verso thing, it needs to be there.

2. The tool doesn't support this unfortunately. Given there are numerous other bugs related to TOCs and page numbering we'll handle that as part of those bugs.

Added book_templates/ directory, brands can now add that directory and if they have files with the same name as the default directory dies they will override them.

Add pdf.css for customizing html-pdf CSS. Again adding a file to the brands css will override that.

This fix has been committed to the devel branch for inclusion in Publican 3.1.

Comment 7 xuezhi ma 2013-01-28 09:09:50 UTC
Verify version:publican-3.1.0-0.el6eng  -> PASS

Verify steps:
1. Build a book with PDF format.
2. Check the cover of the PDF document.

Actual result:
There is a cover in PDF document and the cover with Header, Product-Version-Title, Subtitle and Authors


Note You need to log in before you can comment on or make changes to this bug.