Forum How do I...?

Vertically justify text so pages are equal height?

adamw
Using Prince to format a PDF e-book and loving it! One thing I've been trying to figure out though is if it's possible somehow to vertically justify page contents, so each page appears the same height?

I was reading an article today about the typesetting process an author used for another book and they mentioned this vertical justification which is something I've never thought about: https://rkrishnan.org/posts/2016-03-07-how-is-gopl-typeset.html

The book has subtle adjustments in paragraph spacing and line height on each page to make sure the first line appears at the top of the page and the last line appears at the bottom of the page, leading to a nice uniform look through the book.

Any idea if this is possible to do with CSS and Prince?

  1. Screen Shot 2016-04-12 at 9.19.57 AM.png921.0 kB
mikeday
Not yet. It's something we've been thinking about for the future, along with line-grids, but it requires extending CSS and it's a fair bit of work. Maybe next year. :)
adamw
Definitely understandable! Thanks for the lightning fast reply Mike!