Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Knp Snappy Bundle Options

I'm using KnpSnappyBundle for my Symfony project and I'm trying to define some options in my config file. However if I set, for example:

knp_snappy:
    pdf:
        enabled:    true
        binary:     /usr/local/bin/wkhtmltopdf
        options:    [ 'no-outline' ]

I get an error: The option '0' does not exist.

How do I define options for the bundle?

like image 210
acid Avatar asked Jan 29 '13 16:01

acid


1 Answers

Well, that was kinda dumb of me. YAML to the answer:

knp_snappy:
    pdf:
        enabled:    true
        binary:     /usr/local/bin/wkhtmltopdf
        options:
            no-outline: true
like image 161
acid Avatar answered Sep 23 '22 22:09

acid