pressbooks / pressbooks

Open publishing. Open web. Open source.
https://pressbooks.org/
GNU General Public License v3.0
421 stars 133 forks source link

Enable cover image for digital PDF exports #591

Open greatislander opened 7 years ago

greatislander commented 7 years ago

As an author, I'd like to be able to include my book's cover image as the first page of my digital PDF export files.

We should create a theme option that allows authors to add their cover images as the first page of the digital PDF exports.

When the setting is enabled, the image should only be displayed in Digital PDF exports and should be centered in the middle of the first page and use normal dpi (https://www.princexml.com/doc/11/properties/prince-image-resolution/). We should attempt to use the largest resolution available for the cover image, but should not upscale the image (to avoid pixellation).

Wireframe coming from Steel Theme option in PDF options: Display cover image on first page: checkbox PDF (for digital distribution) only

Description

There is a clear use case for including the cover image in PDFs for digital distribution as it is in EPUB exports. See sample implementation in https://www.princexml.com/doc/13/paged/#trimming-marks

greatislander commented 7 years ago

Props to @pbstudent for the suggestion.