Using headers and/or footers

You can use HTML to specify the header and/or footer contents and layout. Basically you can use all HTML tags, which are normalled allowed within the <BODY> tag (so don't use <HTML>, <BODY>, <HEAD> etc).

By doing so you'll get a lot of control over the layout of your header/footer. You can align it, use images, font styles, colors etc. Just make sure you have enough margin space for your header/footer to reside in.

As if full HTML is not enough to work with, we have also added the parameters in the below table, to ensure that you can use page numbering as well as display current date & time information.

ParameterDescription
%pagepage number
%frompagefirst page number
%topagelast page number
%urlURL that you're converting
%titletitle of the web page
%DDday of the month
%MMmonth of year
%YYYYyear
%hhhour
%mmminute
%sssecond

Demo

Below we used some of the features described in the section to the left to give the PDF of this page a footer, which is right aligned, contains the current date and the page number in red.

Note that you have to properly URL encode the HTML if you're using this in a query string like below.

Download demo PDF!