I'm generating pdf's from html using wicked_pdf. Right now, I want to remove top margin on the first/cover page .
This is a snipped code from my controller :
render :pdf => @project.name,
:javascript_delay => 1000,
:disable_external_links => false,
:encoding => 'UTF-8',
:cover => "#{root_url}/projects/#{params[:id]}/pdf_cover",
:footer => {:html => { :template => 'projects/report_footer.pdf.haml' }, :spacing => 5},
:show_as_html => params[:debug].present?,
:disable_smart_shrinking => false,
:print_media_type => true,
:no_background => false,
:margin => { :top => 10, :bottom => 18 , :left => 0 , :right => 0}
As you can see above, in the controller action I set the top margin to 10 . So I'd like the top margin, the header and the footer to not be shown on the first page, but to be shown on the rest of the document pages. Attachments area