Search code examples
symfonywkhtmltopdf

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?


Solution

  • 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