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
on 2012-11-20 12:25
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.