For an example of how to set up ddev to print PDF in your project, click here:
github.com/codeseveneleven/example-printpdf

It is just a collection of files needed to archive this. It does not contain a complete installation.