BCcampus / pressbooks-mpdf

[UNMAINTAINED] open source HTML to PDF conversion
GNU General Public License v2.0
7 stars 7 forks source link

Style inconsistencies between Prince and mPDF #66

Open josieg opened 6 years ago

josieg commented 6 years ago

Description

I don't think any of these things are a priority, but there are a few style inconsistencies between the Prince PDFs and mPDF files. I'm writing them down so they don't get forgotten, but if we dicide to ignore then we can close this issue.

Page Numbers

Prince PDF uses Arabic numerals only, and page numbering runs uninterrupted from the first page of the front matter to the last page of the back matter. Page numbers do not start over at the beginning of the main body.

In mPDF, the front matter is numbered with Roman numerals. At the beginning of the main body, numbers switch to Arabic numerals and start at 1.

Line spacing

In Prince PDF, there are spaces inserted between items in a list. princelistspace

In mPDF, there are no spaces between list items. This applies to both ordered and unordered lists. mpdflistspace

Textbox colours

All of the textboxes appear without styling (shaded textboxes and all of the educational textboxes) in the mPDF format.

This means that all of these textboxes appear white, and the headings in educational textboxes are no longer set off from the rest of the textbox:

mpdf textboxes

Text wrapping and images

In Prince PDF, text wraps around images if they are right/left aligned. princetextwrap

Text will not wrap around images that are left/right-aligned in mPDF. mpdftextwrap

Bold table headings

In Prince formats, the captions for tables appear bolded and centred.

In mPDF format, table captions appear centred but not bolded.

Running headers

In Prince PDF, you can control what appears in running headers in PDF theme options. The default, however, is alternating author name and book title on each page.

In mPDF, only the book title appears in the running header (on each page), and there is not option to change running header options in mPDF theme options