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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/lYrIjTlmVvcJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to