ariya/phantomjs — pull request #344 by milianw (2012-11-22 14:48:48+00:00)
Title: Improve Table Printing

Reapply the two table-printing related patches of https://github.com/ariya/phantomjs/pull/211 which apparently got lost when the Qt source tree was imported.

This solves the following two issues:

http://code.google.com/p/phantomjs/issues/detail?id=880
http://code.google.com/p/phantomjs/issues/detail?id=615

Example html page:

https://userpage.physik.fu-berlin.de/~milianw/phantomjs/printing/longtable.html

Example PDF output without patches:
https://userpage.physik.fu-berlin.de/~milianw/phantomjs/printing/longtable_vanilla.pdf

Example PDF output with both patches:
https://userpage.physik.fu-berlin.de/~milianw/phantomjs/printing/longtable_patched.pdf

Note: PDF output was created using the following command:

phantomjs examples/rasterize.js \
http://userpage.physik.fu-berlin.de/~milianw/phantomjs/printing/longtable.html \
longtable_patched.pdf A4