Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 4: Not getting it to work #249

Open
vanniekerkalex opened this issue Jul 22, 2019 · 1 comment

Comments

@vanniekerkalex
Copy link

commented Jul 22, 2019

Hi,

I've run into a few issues when trying to get Snappy to work. This is the most recent, any advice?

Thank you in advance!!

public function pdfAction(\Knp\Snappy\Pdf $snappy)
{
    $html = $this->renderView('project/analytics.html.twig');

    return new PdfResponse(
        $snappy->getOutputFromHtml($html),
        'file.pdf'
    );
}

Screenshot 2019-07-22 at 20 00 05

@vanniekerkalex

This comment has been minimized.

Copy link
Author

commented Jul 22, 2019

Extra Info:

I installed both the snappy bundle and the wkhtmltopdf with composer:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.