This is an archived forum post. The information may be outdated. Contact us if you have any
wrote on 2015-08-31:
I?m a subscriber to your html to pdf application. We are using the api to do this. I?m looking for a way that when there is a pagebreak it inserts header code I provide on the start of any page breaks.
Is this possible in PHP?
wrote on 2015-09-01:
$client = new Pdfcrowd("***", "***");
$client->setPageMargins(".5in", ".2in", ".5in", ".2in");
$client->setHeaderHtml("<b>This is a header</b>");
$client->setFooterHtml("<i>Page %p out of %n</i>");
$pdf = $client->convertHTML(stringHTML);