[webkit-gtk] Alternative to page-break-*

Tomeu Vizoso tomeu at tomeuvizoso.net
Fri Aug 31 04:12:07 PDT 2012


On Wed, Aug 22, 2012 at 6:14 PM, Evan Martin <evan at chromium.org> wrote:
> On Wed, Aug 22, 2012 at 6:06 AM, Thiago Bellini Ribeiro
> <hackedbellini at gmail.com> wrote:
>
>> To workaround that, I had to define a height for those divs so they
>> fit ok on an A4 page without breaking information on half. But that's
>> not the best alternative, as any small change, like a font change will
>> make me have to recalculate the divs height and etc. And not to say
>> that the lack of that advanced print control will difficult to
>> implement some tabular information that we haven't tried to start the
>> migraion yet.
>
>
> If I were trying to produce a table output like this, I might try using
> cairo directly (which can output to PDF).
> It's harder than using HTML but you get exact control over where the text is
> positioned.

Another alternative is XSL-FO:

http://en.wikipedia.org/wiki/XSL_Formatting_Objects

Regards,

Tomeu


More information about the webkit-gtk mailing list