Symfony 5 KnpSnappyBundle & wkhtmltopdf Setup and Example(with an explanation of possible errors)

brew install --cask wkhtmltopdf
which wkhtmltopdf


composer require knplabs/knp-snappy-bundle



$this->pdf->setOption('enable-local-file-access', true);

— — —

Here’s my articles which might interest you;




💻 PHP/Symfony Developer. Freelancer. E-mail:

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Developing our own Operating System (Part 06)

Build Ktor Project with Docker and Add Nginx for Load Balancing & Reverse Proxy

Basic CI/CD on Google Cloud Platform using Cloud Build

Robot Framework Analytics

Cucumber Reports

Exact Algorithm or Heuristic, That’s The Question!

US vaccine expert predicts life could be back to normal around May

Atoms In Elixir — Tentamen Software Testing Blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yusuf Biberoğlu

Yusuf Biberoğlu

💻 PHP/Symfony Developer. Freelancer. E-mail:

More from Medium

How to Build and Distribute Beautiful Command-Line Applications with PHP and Composer

CLI tool preview

What Are SOLID Principles?

Git merge commit message becomes release note

Why I built Waterfall, an open-source package to perform cascading deletes.