mileszs/wicked_pdf — Issue #75: Problems with the header.
Author: workdreamer
Created: 2012-01-10 19:06:53+00:00
State: open

Hi, i've found a problem when i am using the header and footer.

The problem is when my PDF file have more than 2 pages when it brake to the another page, the begin of the result of the second page is hided by the header.

i am currently using like this:

format.pdf do
@budget= Budget.find(params[:id])
render :pdf => "Entity #{@entity.code}",
:template => "entities/pdf.html.erb",
:layout => "wicked_pdf.html.erb",
:header => {:html => { :template => entities/header.html.erb"}},
:footer => {:html => { :template => "shared/pdf/footer.html.erb"}},
:margin => {:bottom => 25,:top => 30}
end

a example here