Different header for PDF

7 views
Skip to first unread message

keerthi priya

unread,
Nov 20, 2012, 6:24:10 AM11/20/12
to rubyonra...@googlegroups.com
Hi all,


i am trying to put a different header to one of my action which will create pdf. i am using wickedPDF

this is my code for wicked_pdf.rb

WickedPdf.config = {
    :wkhtmltopdf => '/opt/wkhtmltopdf',
    :layout => "pdf.html",
    :margin => {    :top=> 40,
                    :bottom => 20,
                    :left=> 30,
                    :right => 30},
    :header => {:html => { :template=> 'layouts/pdf_header.html'}},
    :footer => {:html => { :template=> 'layouts/pdf_footer.html'}}
    #:exe_path => '/usr/bin/wkhtmltopdf'
}




to all my pdf i get same header and footer but for one specific pdf i need a different header. how can i do that. can any one help me out..


Cheers,
Kp
Reply all
Reply to author
Forward
0 new messages