mreiferson/php-wkhtmltox — Issue #20: Headers and footers not working
Author: BilboUK
Created: 2012-02-28 17:18:00+00:00
State: open

Thanks for the excellent extension. I'm having a problem getting headers and footers to work. AFAIK I have a patched QT lib (libwkhtmltox-0.11.0_rc1-i386.tar.bz2 downloaded from the main site) and things like "imageQuality" work which seems to confirm this.

However none of the header or footer settings seem to do anything.

E.g.
wkhtmltox_convert('pdf',
array('out' => '/tmp/test1.pdf', "margin.top" => 20, 'header.center' => 'Page Header' ),
array(array('page' => 'http://www.visionaryrenesis.com/')));

does not display the header text. But using the static patched binary does work:
wkhtmltopdf --margin-top 20 --header-center 'Page Header' 'http://www.visionaryrenesis.com/' '/tmp/test2.pdf'

Thanks for any help you can give me.