this is my wicked_pdf.rb in config/initilizers

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'
}


On Tue, Sep 11, 2012 at 5:29 PM, vijaya sekhar reddy mallidi <
[email protected]> wrote:

> Hi keerthi,
>
>    I think this issue relates to proper installation & configuration of
> wicked_pdf.
>
> Cheers,
> Vijay
>
> On Tue, Sep 11, 2012 at 5:22 PM, keerthi priya <
> [email protected]> wrote:
>
>> Hi all i'm trying to generate pdf and i got this error
>>
>>
>> Location of wkhtmltopdf unknown and i also get
>> Bad wkhtmltopdf's path
>>
>> gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize'
>> /EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new'
>> /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf'
>> /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:65:in 
>> `make_and_send_pdf'
>> /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:17:in `render'
>> /EDWARD/gpa/app/controllers/application_controller.rb:292:in `render'
>> /EDWARD/gpa/app/controllers/student_controller.rb:516:in `profile_pdf'
>>
>> Can any one help me what went wrong
>>
>>
>> Cheers
>>
>>
>>
>> --
>> 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/-/G4s3rDCnY4QJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to